From b57a87cafa3989a1817bc8e2e10377f96cd0a206 Mon Sep 17 00:00:00 2001 From: Faq Date: Fri, 13 Jul 2012 18:52:37 +0300 Subject: Core/Spellaura: Fix Idol of Worship --- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/server') 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)); -- cgit v1.2.3