AURA_STATE_HEALTHLESS_20_PERCENT apply only on alive targets

This commit is contained in:
Sidsukana 2018-04-13 09:40:25 +01:00 committed by Antz
parent 4185e88803
commit 3ffded2406

View File

@ -357,7 +357,10 @@ void Unit::Update(uint32 update_diff, uint32 p_time)
// update abilities available only for fraction of time
UpdateReactives(update_diff);
if (IsAlive())
{
ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, GetHealth() < GetMaxHealth() * 0.20f);
}
UpdateSplineMovement(p_time);
i_motionMaster.UpdateMotion(p_time);
}