diff options
| author | megamage <none@none> | 2009-08-29 14:58:45 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-29 14:58:45 -0500 |
| commit | 2a4c9bcaf910430cdf3070987ce085da3c2666da (patch) | |
| tree | a9498395a05c8306726142a8dea856bb79f173d2 /src/game/UnitAI.cpp | |
| parent | 3aabef53ee48e67596d2920cbbc17b9e2238a2cc (diff) | |
*Make position as a class;
--HG--
branch : trunk
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() |
