diff options
author | megamage <none@none> | 2009-05-13 10:54:11 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-13 10:54:11 -0500 |
commit | 8994cbe08188b483c8c85a23d456003816157cad (patch) | |
tree | 0e9860cea0e9a3a1af488d28e84cfb09dbc2aaa9 /src/game/AggressorAI.cpp | |
parent | 4cf3ca42f09fc66d48740f53cb33a8f0788b8e7a (diff) |
*Update some script functions.
--HG--
branch : trunk
Diffstat (limited to 'src/game/AggressorAI.cpp')
-rw-r--r-- | src/game/AggressorAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/AggressorAI.cpp b/src/game/AggressorAI.cpp index 286138fc991..22ebe87cdc6 100644 --- a/src/game/AggressorAI.cpp +++ b/src/game/AggressorAI.cpp @@ -104,7 +104,7 @@ void SpellAI::UpdateAI(const uint32 diff) break; } } - me->CastSpell(target, spellId, false); + if(target) me->CastSpell(target, spellId, false); events.ScheduleEvent(spellId, AISpellInfo[spellId].cooldown + rand()%AISpellInfo[spellId].cooldown); } else |