mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 18:56:15 +00:00
Make sure to use absolute energy to deplete burst.
This commit is contained in:
parent
8f5bd2f220
commit
531683f370
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user