diff options
author | Faq <ainarsh@gmail.com> | 2012-07-13 18:52:37 +0300 |
---|---|---|
committer | Faq <ainarsh@gmail.com> | 2012-07-13 18:52:37 +0300 |
commit | b57a87cafa3989a1817bc8e2e10377f96cd0a206 (patch) | |
tree | 0963cfd4afe4fee3a3e43c8f0661c42617f2d1e2 /src | |
parent | d5f7e1671f856dc6b860be2761af2be5e7cb0c08 (diff) |
Core/Spellaura: Fix Idol of Worship
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 5 |
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 a4acff2a47c..025ebb7275f 100755 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -627,7 +627,10 @@ int32 AuraEffect::CalculateAmount(Unit* caster) uint8 cp = caster->ToPlayer()->GetComboPoints(); // Idol of Feral Shadows. Cant be handled as SpellMod in SpellAura:Dummy due its dependency from CPs - if (AuraEffect const* aurEff = caster->GetAuraEffect(34241, 0)) + if (AuraEffect const* aurEff = caster->GetAuraEffect(34241, EFFECT_0)) + amount += cp * aurEff->GetAmount(); + // Idol of Worship. Cant be handled as SpellMod in SpellAura:Dummy due its dependency from CPs + else if (AuraEffect const* aurEff = caster->GetAuraEffect(60774, EFFECT_0)) amount += cp * aurEff->GetAmount(); amount += uint32(CalculatePctU(caster->GetTotalAttackPowerValue(BASE_ATTACK), cp)); |