Make sure to use absolute energy to deplete burst.

This commit is contained in:
ImmuState 2022-05-20 15:43:11 -07:00 committed by Melledy
parent 8f5bd2f220
commit 531683f370

View File

@ -632,8 +632,8 @@ public class TeamManager {
// If the cast skill was a burst, consume energy. // If the cast skill was a burst, consume energy.
if (skillId == avatar.getSkillDepot().getEnergySkill()) { if (skillId == avatar.getSkillDepot().getEnergySkill()) {
float consumedEnergy = avatar.getFightProperty(avatar.getSkillDepot().getElementType().getMaxEnergyProp()); float consumedEnergy = avatar.getFightProperty(avatar.getSkillDepot().getElementType().getCurEnergyProp());
avatar.getAsEntity().addEnergy(-consumedEnergy); avatar.getAsEntity().addEnergy(-consumedEnergy, true);
} }
} }