Fix healing skills being able to heal dead characters

This commit is contained in:
Melledy 2022-08-21 22:35:05 -07:00
parent 513924af7c
commit dbf2b91d03
No known key found for this signature in database
GPG Key ID: 2A8E7A1D64737CCB
1 changed files with 5 additions and 0 deletions

View File

@ -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) {