diff options
| author | Rat <none@none> | 2010-04-10 10:20:01 +0200 |
|---|---|---|
| committer | Rat <none@none> | 2010-04-10 10:20:01 +0200 |
| commit | 4a8bf5900dbd3fa9b7d9d71989d46dad8112fd7f (patch) | |
| tree | 5bc2a92e77da8a3c1a8d51f35a098cadcc3a3b25 /src/game/UnitAI.cpp | |
| parent | 8bb3b394957f8e3edeb00f68812a997e59bd56d3 (diff) | |
*modified spelldifficulty handler to work with all spell casts for creatures that are in instances thanks to Shauren for help
*modified most of the scripts to use normal_mode spell for casting (code was autogenerated, post errors if any)
*added sql for all modded spells (autogenerated..)
--HG--
branch : trunk
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) |
