diff options
Diffstat (limited to 'src/game/UnitAI.cpp')
-rw-r--r-- | src/game/UnitAI.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game/UnitAI.cpp b/src/game/UnitAI.cpp index 4fd4693885e..0404a284b29 100644 --- a/src/game/UnitAI.cpp +++ b/src/game/UnitAI.cpp @@ -193,12 +193,8 @@ void UnitAI::DoCastToAllHostilePlayers(uint32 spellid, bool triggered) return; } -void UnitAI::DoCast(uint32 spellId, bool useMode) -{ - //search for instance mode spell - if(useMode && me->ToCreature()) - spellId = me->ToCreature()->GetSpellIdForDifficulty(spellId); - +void UnitAI::DoCast(uint32 spellId) +{ Unit *target = NULL; //sLog.outError("aggre %u %u", spellId, (uint32)AISpellInfo[spellId].target); switch(AISpellInfo[spellId].target) |