diff options
| author | ModoX <moardox@gmail.com> | 2024-12-29 00:17:07 +0100 |
|---|---|---|
| committer | ModoX <moardox@gmail.com> | 2024-12-29 00:17:07 +0100 |
| commit | 6b96facee3389f79e579e8a325440051891fa27e (patch) | |
| tree | 0692c6ce3310971b57f84d55fcb3c4e73ad1a739 /src/server/scripts/EasternKingdoms/ZulGurub | |
| parent | 309ba22a15e5e0b4321b99f7157ccb18e0adc8dd (diff) | |
Core/AI: Remove default arguments for inter-script communication
Diffstat (limited to 'src/server/scripts/EasternKingdoms/ZulGurub')
| -rw-r--r-- | src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp b/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp index 108ce771e0b..9dce483983b 100644 --- a/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp +++ b/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp @@ -88,12 +88,13 @@ enum Action ACTION_REVIVE = 1 }; -enum Misc +enum MandokirMisc { POINT_START_REVIVE = 1, DATA_OHGANOT_SO_FAST = 5762, + DATA_REVIVE_GUID = 0, }; enum SummonGroups @@ -198,7 +199,7 @@ struct boss_mandokir : public BossAI { if (Creature* chainedSpirit = ObjectAccessor::GetCreature(*me, (*itr)->GetGUID())) { - chainedSpirit->AI()->SetGUID(_reviveGUID); + chainedSpirit->AI()->SetGUID(_reviveGUID, DATA_REVIVE_GUID); chainedSpirit->AI()->DoAction(ACTION_REVIVE); _reviveGUID.Clear(); } @@ -219,7 +220,7 @@ struct boss_mandokir : public BossAI return 0; } - void SetGUID(ObjectGuid const& guid, int32 /*type = 0 */) override + void SetGUID(ObjectGuid const& guid, int32 /*type*/) override { _reviveGUID = guid; } @@ -343,7 +344,7 @@ struct npc_chained_spirit : public ScriptedAI _revivePlayerGUID.Clear(); } - void SetGUID(ObjectGuid const& guid, int32 /*type = 0 */) override + void SetGUID(ObjectGuid const& guid, int32 /*type*/) override { _revivePlayerGUID = guid; } @@ -383,7 +384,7 @@ struct npc_chained_spirit : public ScriptedAI if (Creature* mandokir = ObjectAccessor::GetCreature(*me, _instance->GetGuidData(DATA_MANDOKIR))) { - mandokir->GetAI()->SetGUID(target->GetGUID()); + mandokir->GetAI()->SetGUID(target->GetGUID(), DATA_REVIVE_GUID); mandokir->GetAI()->DoAction(ACTION_START_REVIVE); } |
