aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-06-10 23:44:30 +0200
committerQAston <none@none>2009-06-10 23:44:30 +0200
commitda067afe12b457e603fd9f3af6914764c48a07dd (patch)
tree4436fd11765815908a7281c76cbd5b4cc9b49e00 /src/game/SpellEffects.cpp
parent5ad8284841af267a45f5099f391e1aba9f57576a (diff)
*Fix Improved Spell Reflection
*Fix Glyph of Improved Scorch *Sword And Board *Fix Glyph of Devastate - original patch by CRAZyBUg --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 8d6d0bc7ae8..1e3c1d78dfe 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -4211,7 +4211,12 @@ void Spell::SpellDamageWeaponDmg(uint32 i)
}
if (!spellInfo)
break;
- m_caster->CastSpell(unitTarget, spellInfo, true);
+ int32 count = 1;
+ // Glyph of Devastate
+ if (AuraEffect * aurEff = m_caster->GetDummyAura(58388))
+ count += aurEff->GetAmount();
+ for (;count>0;count--)
+ m_caster->CastSpell(unitTarget, spellInfo, true);
if (stack)
spell_bonus += stack * CalculateDamage(2, unitTarget);
}