Core:
* add helping methods for manipulating unit's health and use it where applicable * fix some conversion warnings and cleanup code (formatting, CRLF, tabs to spaces) --HG-- branch : trunk
This commit is contained in:
@@ -265,7 +265,7 @@ public:
|
||||
} else MightyBlow_Timer -= diff;
|
||||
|
||||
//Entering Phase 2
|
||||
if (!Phase2 && (me->GetHealth()*100 / me->GetMaxHealth()) < 50)
|
||||
if (!Phase2 && HealthBelowPct(50))
|
||||
{
|
||||
Phase2 = true;
|
||||
DoScriptText(SAY_ENRAGE, me);
|
||||
|
||||
Reference in New Issue
Block a user