Core/SmartAI: added script type 9 (TimedActionList)
- interrupt spells when entering combat - fixed reset of timers - added npc flag modify actions - added action to call a TimedActionList, default options are: process only OOC and resume after combat --HG-- branch : trunk
This commit is contained in:
1 parent
afb3e790de
commit
9df4af80f4
5 files changed
+324
-185
No files matched your search
@@ -571,6 +571,7 @@ void SmartAI::JustReachedHome()
|
||||
|
||||
void SmartAI::EnterCombat(Unit* enemy)
|
||||
{
|
||||
me->InterruptNonMeleeSpells(false);//msut be before ProcessEvents
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_AGGRO, enemy);
|
||||
me->GetPosition(&mLastOOCPos);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user