From ec7da6f911b1597a7eac64f6a2b15734eccfc403 Mon Sep 17 00:00:00 2001 From: QAston Date: Mon, 12 Sep 2011 00:19:10 +0200 Subject: Core/ScriptedAI: remove ScriptedAI::CanCast function which is not functioning properly (compare that func with Spell::CheckCast to see how it should work) and is unused. Closes #2275. --- src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp b/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp index 1e061c38c08..a577f2becf3 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp @@ -1505,8 +1505,7 @@ class npc_captain_grondel : public CreatureScript switch (eventId) { case EVENT_GRONDEL_CHARGE_CHECK: - if (CanCast(me->getVictim(), sSpellMgr->GetSpellInfo(SPELL_CHARGE))) - DoCastVictim(SPELL_CHARGE); + DoCastVictim(SPELL_CHARGE); Events.ScheduleEvent(EVENT_GRONDEL_CHARGE_CHECK, 500); break; case EVENT_GRONDEL_MORTAL_STRIKE: -- cgit v1.2.3