*Fix Improved Spell Reflection

*Fix Glyph of Improved Scorch
*Sword And Board
*Fix Glyph of Devastate - original patch by CRAZyBUg

--HG--
branch : trunk
This commit is contained in:
QAston
2009-06-10 23:44:30 +02:00
parent 5ad8284841
commit da067afe12
11 changed files with 142 additions and 45 deletions

View File

@@ -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);
}