From 2e0a8ae6389378a8b92f067af2f18e3cec3e57ee Mon Sep 17 00:00:00 2001 From: QAston Date: Mon, 27 Jul 2009 17:16:52 +0200 Subject: [PATCH] *Fix Rend bonus for hight hp targets - by Drethek. --HG-- branch : trunk --- src/game/SpellAuras.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index cb6f2caf31..3597c670e8 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -4850,6 +4850,13 @@ void AuraEffect::HandlePeriodicDamage(bool apply, bool Real, bool changeAmount) float mwb_min = caster->GetWeaponDamageRange(BASE_ATTACK,MINDAMAGE); float mwb_max = caster->GetWeaponDamageRange(BASE_ATTACK,MAXDAMAGE); m_amount+=int32(((mwb_min+mwb_max)/2+ap*mws/14000)*0.2f); + // "If used while your target is above 75% health, Rend does 35% more damage." + // as for 3.1.3 only ranks above 9 (wrong tooltip?) + if (spellmgr.GetSpellRank(m_spellProto->Id) >= 9) + { + if (m_target->HasAuraState(AURA_STATE_HEALTH_ABOVE_75_PERCENT, m_spellProto, caster)) + m_amount += int32(m_amount*0.35); + } return; } break;