Ensure Chromaggus always enters enrage mode once he reaches 20% HP (#3147)

* Ensure Chromaggus always enters enrage mode once he reaches 20% HP

* Don't need to cast with CAST_TRIGGERED
This commit is contained in:
Prithu
2017-10-13 13:33:12 +11:00
committed by GitHub
parent 28f14f210e
commit 4df596dd2b
@@ -450,8 +450,8 @@ struct boss_chromaggusAI : public ScriptedAI
// Enrage if not already enraged and below 20%
if (!m_bEnraged && m_creature->GetHealthPercent() < 20.0f)
{
DoCastSpellIfCan(m_creature, SPELL_ENRAGE);
m_bEnraged = true;
if (DoCastSpellIfCan(m_creature, SPELL_ENRAGE) == CAST_OK)
m_bEnraged = true;
}
DoMeleeAttackIfReady();