diff options
Diffstat (limited to 'src/game/UnitAI.cpp')
-rw-r--r-- | src/game/UnitAI.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
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->target<a) AIInfo->target=a;} void UnitAI::FillAISpellInfo() |