From 6c138a15158a39b8150a289f7006f02810c7ba50 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 10 Feb 2023 08:49:24 -0500 Subject: [PATCH] Bugfix: effects without associated powers on login. --- src/engine/objects/PlayerCharacter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 1fcbd66c..a7ceb19e 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -2213,7 +2213,7 @@ public void dismissNecroPets() { for (Effect eff : playerCharacter.getEffects().values()) { if (eff.getPower() == null && otherPlayer) continue; - if (eff.getPower().token == 429506619) // Oblivion's Caress + if (eff.getPower() != null && eff.getPower().token == 429506619) // Oblivion's Caress continue; if ( !eff.serializeForLoad(writer)) continue;