mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-27 09:46:21 +00:00
Make sure to use absolute energy to deplete burst.
This commit is contained in:
parent
542f37d0fb
commit
76880a5bf7
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user