*Fix build.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-27 21:23:42 -05:00
parent 2b753d0f23
commit 8f0fecd7e3
345 changed files with 682 additions and 874 deletions
@@ -68,14 +68,6 @@ void ScriptedAI::AttackStart(Unit* who, bool melee)
if (m_creature->Attack(who, melee))
{
m_creature->AddThreat(who, 0.0f);
if (!InCombat)
{
InCombat = true;
Aggro(who);
}
if(melee)
DoStartMovement(who);
else
@@ -90,14 +82,6 @@ void ScriptedAI::AttackStart(Unit* who)
if (m_creature->Attack(who, true))
{
m_creature->AddThreat(who, 0.0f);
if (!InCombat)
{
InCombat = true;
Aggro(who);
}
DoStartMovement(who);
}
}
@@ -139,13 +123,11 @@ void ScriptedAI::EnterEvadeMode()
m_creature->GetMotionMaster()->MoveTargetedHome();
}
InCombat = false;
Reset();
}
void ScriptedAI::JustRespawned()
{
InCombat = false;
Reset();
}
@@ -792,14 +774,6 @@ void Scripted_NoMovementAI::AttackStart(Unit* who)
if (m_creature->Attack(who, true))
{
m_creature->AddThreat(who, 0.0f);
if (!InCombat)
{
InCombat = true;
Aggro(who);
}
DoStartNoMovement(who);
}
}