aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-12-16 23:16:14 +0100
committerMachiavelli <none@none>2010-12-16 23:16:14 +0100
commit5d887159c659b0d145bfc10580f59abc3c228bac (patch)
tree2916b5f412d5a5e01e73ddc9d81118febed8477c
parent942dadc6a97cf12855ff41327ac5e3a54f017db2 (diff)
Core/Spells: Fix Power Word: Shield absorb amount after r5badab6d42.
(casting TotalAuraMultiplier to int32 effectively meant setting amount to 0) --HG-- branch : trunk
-rwxr-xr-xsrc/server/game/Spells/Auras/SpellAuraEffects.cpp5
1 files changed, 4 insertions, 1 deletions
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;
}