*Fix the bug of doomwalker.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-28 22:29:27 -06:00
parent c1b6565e53
commit 903b30b38e

View File

@@ -125,7 +125,7 @@ struct TRINITY_DLL_DECL boss_doomwalkerAI : public ScriptedAI
if (!m_creature->SelectHostilTarget() || !m_creature->getVictim())
return;
if (m_creature->IsWithinDistInMap(m_creature->getVictim(), ATTACK_DISTANCE))
//if (m_creature->IsWithinDistInMap(m_creature->getVictim(), ATTACK_DISTANCE))
{
//Spell Enrage
if (((m_creature->GetHealth()*100)/ m_creature->GetMaxHealth()) <= 20)//when hp <= 20% gain enrage