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.
This commit is contained in:
1 parent
dad5b0bb3c
commit
ec7da6f911
3 files changed
+1
-26
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user