*Update proc system.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-05-17 18:00:33 +02:00
1 parent d2ef2c0500
commit 7c6757d7ee
11 files changed
+85 -51

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ void SpellAI::EnterCombat(Unit *who)
for(SpellVct::iterator i = spells.begin(); i != spells.end(); ++i)
{
if(AISpellInfo[*i].condition == AICOND_AGGRO)
me->CastSpell(who, *i, true);
me->CastSpell(who, *i, false);
else if(AISpellInfo[*i].condition == AICOND_COMBAT)
events.ScheduleEvent(*i, AISpellInfo[*i].cooldown + rand()%AISpellInfo[*i].cooldown);
}