v3.0.0: fixed crash on artifact recharging when ghost hero is in stasis

This commit is contained in:
Evan Debenham
2025-02-23 14:53:30 -05:00
parent 0364efec3c
commit 07f3310534

View File

@@ -326,7 +326,9 @@ public class DriedRose extends Artifact {
} else if (ghost.HP < ghost.HT) {
int heal = Math.round((1 + level()/3f)*amount);
ghost.HP = Math.min( ghost.HT, ghost.HP + heal);
ghost.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(heal), FloatingText.HEALING);
if (ghost.sprite != null) {
ghost.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(heal), FloatingText.HEALING);
}
updateQuickslot();
}
}