From f05e638840c3a210ebfaff82954d3c589dc6c45d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 17 Sep 2024 11:28:18 -0400 Subject: [PATCH] v2.5.2: fixed new crash caused by ratmog expiring (oops!) --- .../shatteredpixeldungeon/actors/hero/abilities/Ratmogrify.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/Ratmogrify.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/Ratmogrify.java index 76a5f22c7..5d9ae959f 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/Ratmogrify.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/Ratmogrify.java @@ -302,7 +302,7 @@ public class Ratmogrify extends ArmorAbility { @Override public void destroy() { super.destroy(); - if (alignment == Alignment.ENEMY) { + if (alignment == Alignment.ENEMY && original != null) { Bestiary.setSeen(original.getClass()); Bestiary.countEncounter(original.getClass()); }