Scripts/Auchindoun: Fix a super edge case crash bug with GM far teleports during Blackheart's charm phase. Follow-up to d80d7c6.
(cherry picked from commit 165bc028893a1971d4c75b146e3cd3ce92f13982)
This commit is contained in:
@@ -59,6 +59,8 @@ class BlackheartCharmedPlayerAI : public SimpleCharmedPlayerAI
|
||||
void OnCharmed(bool apply) override
|
||||
{
|
||||
SimpleCharmedPlayerAI::OnCharmed(apply);
|
||||
if (!me->GetMap()->IsDungeon())
|
||||
return;
|
||||
if (Creature* blackheart = ObjectAccessor::GetCreature(*me, me->GetInstanceScript()->GetGuidData(DATA_BLACKHEART_THE_INCITER)))
|
||||
{
|
||||
blackheart->AI()->SetData(0, apply);
|
||||
|
||||
Reference in New Issue
Block a user