From 5d887159c659b0d145bfc10580f59abc3c228bac Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Thu, 16 Dec 2010 23:16:14 +0100 Subject: Core/Spells: Fix Power Word: Shield absorb amount after r5badab6d42. (casting TotalAuraMultiplier to int32 effectively meant setting amount to 0) --HG-- branch : trunk --- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 06b065eb78d..af7bbfe175a 100755 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -540,7 +540,10 @@ int32 AuraEffect::CalculateAmount(Unit * caster) AddPctN(amount, pAurEff->GetAmount()); // Focused Power - amount *= int32(caster->GetTotalAuraMultiplier(SPELL_AURA_MOD_HEALING_DONE_PERCENT)); + // Reuse variable, not sure if this code below can be moved before Twin Disciplines + DoneActualBenefit = float(amount); + DoneActualBenefit *= caster->GetTotalAuraMultiplier(SPELL_AURA_MOD_HEALING_DONE_PERCENT); + amount = int32(DoneActualBenefit); return amount; } -- cgit v1.2.3