v2.5.2: fixed new crash caused by ratmog expiring (oops!)

This commit is contained in:
Evan Debenham
2024-09-17 11:28:18 -04:00
parent ee98f88285
commit f05e638840

View File

@@ -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());
}