diff options
| author | ariel- <ariel-@users.noreply.github.com> | 2018-01-22 15:00:55 -0300 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-06-16 21:03:06 +0200 |
| commit | c77925da4a320df5be5eaeb1fc799df50e22c041 (patch) | |
| tree | 3a574f41483c6c73b6bd10aa254d15bbc2a4501c /src/server/scripts/Outland | |
| parent | 29bfa32fc39de1d93fbdb272d48689174c547725 (diff) | |
Core/Entities: killed Creature::SetInCombatWithZone and replaced with AI version
Closes #12108 (again)
(cherry picked from commit 7c9722a4ae08b5f283f6a085a411e37604a7da9f)
Diffstat (limited to 'src/server/scripts/Outland')
8 files changed, 13 insertions, 13 deletions
diff --git a/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp b/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp index 6abc09dee88..5bdbd406d67 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp @@ -1379,7 +1379,7 @@ struct npc_parasitic_shadowfiend : public ScriptedAI _scheduler.Schedule(Seconds(2), [this](TaskContext /*context*/) { me->SetReactState(REACT_AGGRESSIVE); - me->SetInCombatWithZone(); + DoZoneInCombat(); }); } @@ -1394,7 +1394,7 @@ struct npc_parasitic_shadowfiend : public ScriptedAI _scheduler.Schedule(Seconds(2), [this](TaskContext /*context*/) { me->SetReactState(REACT_AGGRESSIVE); - me->SetInCombatWithZone(); + DoZoneInCombat(); }); } @@ -1497,7 +1497,7 @@ struct npc_flame_of_azzinoth : public ScriptedAI { case EVENT_ENGAGE: me->SetReactState(REACT_AGGRESSIVE); - me->SetInCombatWithZone(); + DoZoneInCombat(); _events.ScheduleEvent(EVENT_FLAME_CHARGE, Seconds(5)); break; case EVENT_FLAME_CHARGE: diff --git a/src/server/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp b/src/server/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp index a5455876b2d..6c339c35c63 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp @@ -634,7 +634,7 @@ struct npc_enslaved_soul : public ScriptedAI _scheduler.Schedule(Seconds(3), [this](TaskContext /*context*/) { me->SetReactState(REACT_AGGRESSIVE); - me->SetInCombatWithZone(); + DoZoneInCombat(); }); } diff --git a/src/server/scripts/Outland/BlackTemple/boss_teron_gorefiend.cpp b/src/server/scripts/Outland/BlackTemple/boss_teron_gorefiend.cpp index c156a1aa10c..50d5cf67a10 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_teron_gorefiend.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_teron_gorefiend.cpp @@ -233,7 +233,7 @@ struct npc_doom_blossom : public NullCreatureAI DoCast(SPELL_SUMMON_BLOSSOM_MOVE_TARGET); _scheduler.CancelAll(); - me->SetInCombatWithZone(); + DoZoneInCombat(); _scheduler.Schedule(Seconds(12), [this](TaskContext shadowBolt) { if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0)) diff --git a/src/server/scripts/Outland/CoilfangReservoir/TheSlavePens/boss_ahune.cpp b/src/server/scripts/Outland/CoilfangReservoir/TheSlavePens/boss_ahune.cpp index e4f54514d94..2560dfb0e99 100644 --- a/src/server/scripts/Outland/CoilfangReservoir/TheSlavePens/boss_ahune.cpp +++ b/src/server/scripts/Outland/CoilfangReservoir/TheSlavePens/boss_ahune.cpp @@ -391,7 +391,7 @@ public: if (summon->GetEntry() == NPC_AHUNE) return; - summon->SetInCombatWithZone(); + DoZoneInCombat(summon); _summons.Summon(summon); } @@ -470,7 +470,7 @@ public: if (TempSummon* ahune = me->SummonCreature(NPC_AHUNE, SummonPositions[0], TEMPSUMMON_DEAD_DESPAWN)) { ahune->SummonCreature(NPC_FROZEN_CORE, SummonPositions[1], TEMPSUMMON_CORPSE_DESPAWN); - ahune->SetInCombatWithZone(); + DoZoneInCombat(ahune); DoCast(ahune, SPELL_RESURFACE); } break; @@ -671,7 +671,7 @@ public: if (Creature* ahuneBunny = ObjectAccessor::GetCreature(*me, instance->GetGuidData(DATA_AHUNE_BUNNY))) { ahuneBunny->AI()->DoAction(ACTION_START_EVENT); - ahuneBunny->SetInCombatWithZone(); + ahuneBunny->AI()->DoZoneInCombat(); } if (Creature* luma = ObjectAccessor::GetCreature(*me, instance->GetGuidData(DATA_LUMA_SKYMOTHER))) luma->CastSpell(player, SPELL_SUMMONING_RHYME_AURA, true); diff --git a/src/server/scripts/Outland/HellfireCitadel/BloodFurnace/boss_broggok.cpp b/src/server/scripts/Outland/HellfireCitadel/BloodFurnace/boss_broggok.cpp index d9baabc0ba2..334e7335ccd 100644 --- a/src/server/scripts/Outland/HellfireCitadel/BloodFurnace/boss_broggok.cpp +++ b/src/server/scripts/Outland/HellfireCitadel/BloodFurnace/boss_broggok.cpp @@ -103,7 +103,7 @@ class boss_broggok : public CreatureScript switch (action) { case ACTION_PREPARE_BROGGOK: - me->SetInCombatWithZone(); + DoZoneInCombat(); break; case ACTION_ACTIVATE_BROGGOK: me->SetReactState(REACT_AGGRESSIVE); diff --git a/src/server/scripts/Outland/HellfireCitadel/BloodFurnace/instance_blood_furnace.cpp b/src/server/scripts/Outland/HellfireCitadel/BloodFurnace/instance_blood_furnace.cpp index 6a5c804d41d..45d4350720b 100644 --- a/src/server/scripts/Outland/HellfireCitadel/BloodFurnace/instance_blood_furnace.cpp +++ b/src/server/scripts/Outland/HellfireCitadel/BloodFurnace/instance_blood_furnace.cpp @@ -294,7 +294,7 @@ class instance_blood_furnace : public InstanceMapScript { prisoner->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE); prisoner->SetImmuneToAll(false); - prisoner->SetInCombatWithZone(); + prisoner->AI()->DoZoneInCombat(); } } diff --git a/src/server/scripts/Outland/HellfireCitadel/MagtheridonsLair/boss_magtheridon.cpp b/src/server/scripts/Outland/HellfireCitadel/MagtheridonsLair/boss_magtheridon.cpp index ef83ec9af8d..8f0a3807428 100644 --- a/src/server/scripts/Outland/HellfireCitadel/MagtheridonsLair/boss_magtheridon.cpp +++ b/src/server/scripts/Outland/HellfireCitadel/MagtheridonsLair/boss_magtheridon.cpp @@ -250,7 +250,7 @@ class boss_magtheridon : public CreatureScript case EVENT_RELEASED: me->RemoveUnitFlag(UNIT_FLAG_NOT_SELECTABLE); me->SetImmuneToPC(false); - me->SetInCombatWithZone(); + DoZoneInCombat(); instance->SetData(DATA_MANTICRON_CUBE, ACTION_ENABLE); events.ScheduleEvent(EVENT_CLEAVE, Seconds(10)); events.ScheduleEvent(EVENT_BLAST_NOVA, Seconds(60)); @@ -354,7 +354,7 @@ class npc_hellfire_channeler : public CreatureScript if (Creature* magtheridon = _instance->GetCreature(DATA_MAGTHERIDON)) magtheridon->AI()->JustSummoned(summon); - summon->SetInCombatWithZone(); + DoZoneInCombat(summon); } void EnterEvadeMode(EvadeReason /*why*/) override diff --git a/src/server/scripts/Outland/HellfireCitadel/MagtheridonsLair/instance_magtheridons_lair.cpp b/src/server/scripts/Outland/HellfireCitadel/MagtheridonsLair/instance_magtheridons_lair.cpp index 0a538face5c..40dc9a58e6d 100644 --- a/src/server/scripts/Outland/HellfireCitadel/MagtheridonsLair/instance_magtheridons_lair.cpp +++ b/src/server/scripts/Outland/HellfireCitadel/MagtheridonsLair/instance_magtheridons_lair.cpp @@ -123,7 +123,7 @@ class instance_magtheridons_lair : public InstanceMapScript for (ObjectGuid warderGuid : warderGUIDS) if (Creature* warder = instance->GetCreature(warderGuid)) if (warder->IsAlive()) - warder->SetInCombatWithZone(); + warder->AI()->DoZoneInCombat(); break; default: break; |
