From f4846bb2d1202bd4f613c27929c486c9bfefa57b Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 25 Mar 2018 03:03:12 +0200 Subject: [PATCH] Scripts/VP: converted Ertan's Vortex AI script to PassiveAI --- .../Kalimdor/VortexPinnacle/boss_grand_vizier_ertan.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/server/scripts/Kalimdor/VortexPinnacle/boss_grand_vizier_ertan.cpp b/src/server/scripts/Kalimdor/VortexPinnacle/boss_grand_vizier_ertan.cpp index c91c6bb660e..b92f1921cb9 100644 --- a/src/server/scripts/Kalimdor/VortexPinnacle/boss_grand_vizier_ertan.cpp +++ b/src/server/scripts/Kalimdor/VortexPinnacle/boss_grand_vizier_ertan.cpp @@ -219,9 +219,9 @@ class npc_ertans_vortex : public CreatureScript public: npc_ertans_vortex() : CreatureScript("npc_ertans_vortex") { } - struct npc_ertans_vortexAI : public ScriptedAI + struct npc_ertans_vortexAI : public PassiveAI { - npc_ertans_vortexAI(Creature* creature) : ScriptedAI(creature) + npc_ertans_vortexAI(Creature* creature) : PassiveAI(creature) { Initialize(); } @@ -231,10 +231,9 @@ public: _currentPointId = 0; } - void IsSummonedBy(Unit* summoner) override + void IsSummonedBy(Unit* /*summoner*/) override { - DoCast(me, SPELL_CYCLONE_SHIELD); - DoZoneInCombat(); + DoCast(me, SPELL_CYCLONE_SHIELD, true); } void DoAction(int32 action) override