ForgeOfSoulsTriggers.cpp added null check

This commit is contained in:
bash
2024-11-18 22:04:44 +01:00
committed by GitHub
parent 9bea66bedc
commit 5af1bf9a88

View File

@@ -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;