Unverified Commit dbf2b91d authored by Melledy's avatar Melledy
Browse files

Fix healing skills being able to heal dead characters

parent 513924af
......@@ -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 0f;
}
float healed = super.heal(amount);
if (healed > 0f) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment