From 2a4c9bcaf910430cdf3070987ce085da3c2666da Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 29 Aug 2009 14:58:45 -0500 Subject: *Make position as a class; --HG-- branch : trunk --- src/game/UnitAI.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/game/UnitAI.cpp') diff --git a/src/game/UnitAI.cpp b/src/game/UnitAI.cpp index 50936bff001..d0a013393ba 100644 --- a/src/game/UnitAI.cpp +++ b/src/game/UnitAI.cpp @@ -275,22 +275,6 @@ void UnitAI::DoCast(uint32 spellId) me->CastSpell(target, spellId, false); } -void UnitAI::DoCast(Unit* victim, uint32 spellId, bool triggered) -{ - if(!victim || me->hasUnitState(UNIT_STAT_CASTING) && !triggered) - return; - - me->CastSpell(victim, spellId, triggered); -} - -void UnitAI::DoCastAOE(uint32 spellId, bool triggered) -{ - if(!triggered && me->hasUnitState(UNIT_STAT_CASTING)) - return; - - me->CastSpell((Unit*)NULL, spellId, triggered); -} - #define UPDATE_TARGET(a) {if(AIInfo->targettarget=a;} void UnitAI::FillAISpellInfo() -- cgit v1.2.3