Merge pull request #7113 from Vincent-Michael/IdolOfTheCryingWind

Core/Spell: Fix Idol of the Crying Wind calculation
This commit is contained in:
Nay
2012-07-29 09:08:14 -07:00
+3 -3
View File
@@ -625,11 +625,11 @@ class spell_dru_insect_swarm : public SpellScriptLoader
{
PrepareAuraScript(spell_dru_insect_swarm_AuraScript);
void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
void CalculateAmount(AuraEffect const* aurEff, int32 & amount, bool & /*canBeRecalculated*/)
{
if (Unit* caster = GetCaster())
if (AuraEffect const* aurEff = caster->GetAuraEffect(SPELL_DRUID_ITEM_T8_BALANCE_RELIC, EFFECT_0))
amount += aurEff->GetAmount();
if (AuraEffect const* relicAurEff = caster->GetAuraEffect(SPELL_DRUID_ITEM_T8_BALANCE_RELIC, EFFECT_0))
amount += relicAurEff->GetAmount() / aurEff->GetTotalTicks();
}
void Register()