Commit 531683f3 authored by ImmuState's avatar ImmuState Committed by Melledy
Browse files

Make sure to use absolute energy to deplete burst.

parent 8f5bd2f2
...@@ -632,8 +632,8 @@ public class TeamManager { ...@@ -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);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment