[7723] New AI call EnterCombat called at enter creature to combat (and re-enter if leave by some reason). Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-27 19:14:37 -05:00
parent d4c75dddea
commit 2b753d0f23
7 changed files with 14 additions and 19 deletions
@@ -793,10 +793,6 @@ struct TRINITY_DLL_DECL mob_toxic_sporebatAI : public ScriptedAI
void UpdateAI (const uint32 diff)
{
/*if(!m_creature->isInCombat())
m_creature->SetInCombatState(false);*/
//Random movement
if (movement_timer < diff)
{
@@ -357,7 +357,7 @@ struct TRINITY_DLL_DECL boss_the_lurker_belowAI : public Scripted_NoMovementAI
}else PhaseTimer-=diff;
if(!m_creature->isInCombat())
m_creature->SetInCombatState(false);
DoZoneInCombat();
if(!Spawned)
{