From 07f33105346db6e566671910256bb8ea0ed18e76 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 23 Feb 2025 14:53:30 -0500 Subject: [PATCH] v3.0.0: fixed crash on artifact recharging when ghost hero is in stasis --- .../shatteredpixeldungeon/items/artifacts/DriedRose.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/DriedRose.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/DriedRose.java index b7210a307..1045bf409 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/DriedRose.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/DriedRose.java @@ -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(); } }