*Fix the bug of doomwalker.
--HG-- branch : trunk
This commit is contained in:
@@ -125,7 +125,7 @@ struct TRINITY_DLL_DECL boss_doomwalkerAI : public ScriptedAI
|
|||||||
if (!m_creature->SelectHostilTarget() || !m_creature->getVictim())
|
if (!m_creature->SelectHostilTarget() || !m_creature->getVictim())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_creature->IsWithinDistInMap(m_creature->getVictim(), ATTACK_DISTANCE))
|
//if (m_creature->IsWithinDistInMap(m_creature->getVictim(), ATTACK_DISTANCE))
|
||||||
{
|
{
|
||||||
//Spell Enrage
|
//Spell Enrage
|
||||||
if (((m_creature->GetHealth()*100)/ m_creature->GetMaxHealth()) <= 20)//when hp <= 20% gain enrage
|
if (((m_creature->GetHealth()*100)/ m_creature->GetMaxHealth()) <= 20)//when hp <= 20% gain enrage
|
||||||
|
|||||||
Reference in New Issue
Block a user