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
dbf2b91d
Unverified
Commit
dbf2b91d
authored
Aug 21, 2022
by
Melledy
Browse files
Fix healing skills being able to heal dead characters
parent
513924af
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/entity/EntityAvatar.java
View file @
dbf2b91d
...
...
@@ -126,6 +126,11 @@ public class EntityAvatar extends GameEntity {
@Override
public
float
heal
(
float
amount
)
{
// Do not heal character if they are dead
if
(!
this
.
isAlive
())
{
return
0
f
;
}
float
healed
=
super
.
heal
(
amount
);
if
(
healed
>
0
f
)
{
...
...
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