From 75cd06b98c7dc489ee4554cf3af6a8f6403decee Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 7 Jan 2009 11:56:57 -0600 Subject: *Mangos Implement AURA_STATE_HEALTH_ABOVE_75_PERCENT use. By DiSlord. *Mangos [7045]. More correct spell select for creatures if spell PreventionType == SPELL_PREVENTION_TYPE_SILENCE. Also add check for PreventionType == SPELL_PREVENTION_TYPE_PACIFY. By DiSlord. *Mangos [7046] Do more security level checks in commands using HasLowerSecurity. Make use .account set addon safe for players. By Vladimir. *Mangos [7047] Fix Draenei race spell add at client switch. By DiSlord. --HG-- branch : trunk --- src/game/Unit.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index b8b17bf5b9e..6f64a3ee57a 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -232,6 +232,7 @@ void Unit::Update( uint32 p_time ) ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, GetHealth() < GetMaxHealth()*0.20f); ModifyAuraState(AURA_STATE_HEALTHLESS_35_PERCENT, GetHealth() < GetMaxHealth()*0.35f); + ModifyAuraState(AURA_STATE_HEALTH_ABOVE_75_PERCENT, GetHealth() > GetMaxHealth()*0.75f); i_motionMaster.UpdateMotion(p_time); } -- cgit v1.2.3