*Update proc system.
--HG-- branch : trunk
This commit is contained in:
1 parent
d2ef2c0500
commit
7c6757d7ee
11 files changed
+85
-51
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user