aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-08-28 14:03:18 +0200
committerQAston <none@none>2009-08-28 14:03:18 +0200
commitdc83c7759bbb6331637400b8feee4fcab9ba26bb (patch)
tree40a3417f3a2478a4b61b8e9f04bc0eabce6b5767 /src/game/SpellEffects.cpp
parentf2dc36be2948f97a630a7e51c8f60b5ca0217c2c (diff)
*Fix Improved Insect Swarm - original patch by Zor
*Use target as source of area auras in Unit::AddAura(uint32 spellId, Unit *target) --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index d8471edcc6d..433a677e019 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -521,6 +521,14 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
damage += int32(energy * multiple);
damage += int32(((Player*)m_caster)->GetComboPoints() * ap * 7 / 100);
}
+ // Wrath
+ else if (m_spellInfo->SpellFamilyFlags[0] & 0x00000001)
+ {
+ // Improved Insect Swarm
+ if (AuraEffect const * aurEff = m_caster->GetDummyAura(SPELLFAMILY_DRUID, 1771, 0))
+ if (unitTarget->GetAura(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_DRUID, 0x00200000))
+ damage = int32(damage*(100.0f+aurEff->GetAmount())/100.0f);
+ }
break;
}
case SPELLFAMILY_ROGUE: