Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
531683f3
Commit
531683f3
authored
May 20, 2022
by
ImmuState
Committed by
Melledy
May 22, 2022
Browse files
Make sure to use absolute energy to deplete burst.
parent
8f5bd2f2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/player/TeamManager.java
View file @
531683f3
...
@@ -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
().
get
Max
EnergyProp
());
float
consumedEnergy
=
avatar
.
getFightProperty
(
avatar
.
getSkillDepot
().
getElementType
().
get
Cur
EnergyProp
());
avatar
.
getAsEntity
().
addEnergy
(-
consumedEnergy
);
avatar
.
getAsEntity
().
addEnergy
(-
consumedEnergy
,
true
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment