From 5af1bf9a88be198bb2bffb8c9668553c6d9a78db Mon Sep 17 00:00:00 2001 From: bash <31279994+hermensbas@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:04:44 +0100 Subject: [PATCH] ForgeOfSoulsTriggers.cpp added null check --- .../dungeons/wotlk/forgeofsouls/ForgeOfSoulsTriggers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/dungeons/wotlk/forgeofsouls/ForgeOfSoulsTriggers.cpp b/src/strategy/dungeons/wotlk/forgeofsouls/ForgeOfSoulsTriggers.cpp index 13256d70..c8a3aa0d 100644 --- a/src/strategy/dungeons/wotlk/forgeofsouls/ForgeOfSoulsTriggers.cpp +++ b/src/strategy/dungeons/wotlk/forgeofsouls/ForgeOfSoulsTriggers.cpp @@ -7,7 +7,7 @@ bool MoveFromBronjahmTrigger::IsActive() { Unit* boss = AI_VALUE2(Unit*, "find target", "bronjahm"); - if (boss->FindCurrentSpellBySpellId(SPELL_CORRUPT_SOUL) && bot->HasAura(SPELL_CORRUPT_SOUL)) + if (boss && boss->FindCurrentSpellBySpellId(SPELL_CORRUPT_SOUL) && bot->HasAura(SPELL_CORRUPT_SOUL)) return true; return false;