mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 16:16:27 +00:00
fix(Scripts/ZulGurub): Prevent from summoning multiple Edge of Madnes… (#12331)
...s bosses.
This commit is contained in:
@@ -82,6 +82,12 @@ public:
|
||||
case NPC_GAHZRANKA:
|
||||
_gahzrankaGUID = creature->GetGUID();
|
||||
break;
|
||||
case NPC_GRILEK:
|
||||
case NPC_HAZZARAH:
|
||||
case NPC_RENATAKI:
|
||||
case NPC_WUSHOOLAY:
|
||||
_edgeOfMadnessGUID = creature->GetGUID();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -119,6 +125,8 @@ public:
|
||||
return _goGongOfBethekkGUID;
|
||||
case DATA_HAKKAR:
|
||||
return _hakkarGUID;
|
||||
case DATA_EDGE_OF_MADNESS:
|
||||
return _edgeOfMadnessGUID;
|
||||
}
|
||||
|
||||
return ObjectGuid::Empty;
|
||||
@@ -186,6 +194,7 @@ public:
|
||||
ObjectGuid _goGongOfBethekkGUID;
|
||||
ObjectGuid _hakkarGUID;
|
||||
ObjectGuid _gahzrankaGUID;
|
||||
ObjectGuid _edgeOfMadnessGUID;
|
||||
};
|
||||
|
||||
InstanceScript* GetInstanceScript(InstanceMap* map) const override
|
||||
@@ -223,6 +232,14 @@ struct go_brazier_of_madness : public GameObjectAI
|
||||
return true;
|
||||
}
|
||||
|
||||
if (InstanceScript* instanceScript = me->GetInstanceScript())
|
||||
{
|
||||
if (instanceScript->GetGuidData(DATA_EDGE_OF_MADNESS))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
uint32 bossEntry = 0;
|
||||
for (uint8 i = 0; i < 4; ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user