[9020] Re-implement 1680 (and triggred spell for 46924) in less hack way.

This commit is contained in:
VladimirMangos 2009-12-18 06:11:00 +03:00
parent cc9072c89f
commit 6b78ed534d
3 changed files with 9 additions and 13 deletions

View file

@ -4580,14 +4580,8 @@ void Spell::EffectWeaponDmg(uint32 i)
{
case SPELLFAMILY_WARRIOR:
{
// Whirlwind, single only spell with 2 weapon white damage apply if have
if(m_caster->GetTypeId()==TYPEID_PLAYER && (m_spellInfo->SpellFamilyFlags & UI64LIT(0x00000400000000)))
{
if(((Player*)m_caster)->GetWeaponForAttack(OFF_ATTACK, true, true))
spell_bonus += m_caster->CalculateDamage (OFF_ATTACK, normalized);
}
// Devastate bonus and sunder armor refresh
else if(m_spellInfo->SpellVisual[0] == 12295 && m_spellInfo->SpellIconID == 1508)
if(m_spellInfo->SpellVisual[0] == 12295 && m_spellInfo->SpellIconID == 1508)
{
uint32 stack = 0;
// Need refresh all Sunder Armor auras from this caster