aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2012-07-29 09:08:14 -0700
committerNay <dnpd.dd@gmail.com>2012-07-29 09:08:14 -0700
commit462b6ded19e3f0fa510bb09471a8c5e0dd55bf52 (patch)
tree49bb9e9edc296a6bb2dd66016987ff0382142b8e
parent94e6f9c58c4388504c6b43d0a6d251ba15aa315e (diff)
parent7c6c488908e6c1c86fb510cb9d7b4b7733155d35 (diff)
Merge pull request #7113 from Vincent-Michael/IdolOfTheCryingWind
Core/Spell: Fix Idol of the Crying Wind calculation
-rw-r--r--src/server/scripts/Spells/spell_druid.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp
index 4dd115f22ca..b213f3df624 100644
--- a/src/server/scripts/Spells/spell_druid.cpp
+++ b/src/server/scripts/Spells/spell_druid.cpp
@@ -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()