Fix a crash in Forge of Souls (#729)

This commit is contained in:
Revision
2024-11-18 22:08:08 +01:00
committed by GitHub
parent 9bea66bedc
commit b46416fe1e

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;