mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Scripts/Auchindoun: Fix a super edge case crash bug with GM far teleports during Blackheart's charm phase. Follow-up to d80d7c6.
This commit is contained in:
@@ -60,6 +60,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