refactor(Scripts/Spells): code cleanup (part 9) (#6946)

This commit is contained in:
Francesco Borzì
2021-07-22 01:12:28 +02:00
committed by GitHub
parent 9ab6ba9664
commit 3b752dd796
7 changed files with 36 additions and 17 deletions

View File

@@ -886,8 +886,8 @@ public:
if (AuraEffect const* idol = caster->GetAuraEffect(SPELL_DRUID_IDOL_OF_FERAL_SHADOWS, EFFECT_0))
amount += cp * idol->GetAmount();
// Idol of Worship. Can't be handled as SpellMod due its dependency from CPs
else if (AuraEffect const* idol = caster->GetAuraEffect(SPELL_DRUID_IDOL_OF_WORSHIP, EFFECT_0))
amount += cp * idol->GetAmount();
else if (AuraEffect const* idol2 = caster->GetAuraEffect(SPELL_DRUID_IDOL_OF_WORSHIP, EFFECT_0))
amount += cp * idol2->GetAmount();
amount += int32(CalculatePct(caster->GetTotalAttackPowerValue(BASE_ATTACK), cp));
}