Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Grasscutter
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
ziqian zhang
Grasscutter
Commits
dbf2b91d
Unverified
Commit
dbf2b91d
authored
2 years ago
by
Melledy
Browse files
Options
Downloads
Patches
Plain Diff
Fix healing skills being able to heal dead characters
parent
513924af
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/emu/grasscutter/game/entity/EntityAvatar.java
+5
-0
5 additions, 0 deletions
src/main/java/emu/grasscutter/game/entity/EntityAvatar.java
with
5 additions
and
0 deletions
src/main/java/emu/grasscutter/game/entity/EntityAvatar.java
+
5
−
0
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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment