From 531683f370a44737a4a685de89bd24d38527a9cf Mon Sep 17 00:00:00 2001 From: ImmuState Date: Fri, 20 May 2022 15:43:11 -0700 Subject: [PATCH] Make sure to use absolute energy to deplete burst. --- src/main/java/emu/grasscutter/game/player/TeamManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/player/TeamManager.java b/src/main/java/emu/grasscutter/game/player/TeamManager.java index 22425e99e..55b7a5380 100644 --- a/src/main/java/emu/grasscutter/game/player/TeamManager.java +++ b/src/main/java/emu/grasscutter/game/player/TeamManager.java @@ -632,8 +632,8 @@ public class TeamManager { // If the cast skill was a burst, consume energy. if (skillId == avatar.getSkillDepot().getEnergySkill()) { - float consumedEnergy = avatar.getFightProperty(avatar.getSkillDepot().getElementType().getMaxEnergyProp()); - avatar.getAsEntity().addEnergy(-consumedEnergy); + float consumedEnergy = avatar.getFightProperty(avatar.getSkillDepot().getElementType().getCurEnergyProp()); + avatar.getAsEntity().addEnergy(-consumedEnergy, true); } }