[8172] Drop dead code for 33878/33876 and ranks. Author: VladimirMangos

Detected by spell_check: not have now dummy aura but have
    SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCEN for proper mechanic.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-07-16 10:18:35 +08:00
1 parent 27bbca78a1
commit 43ac2c4cb4
3 files changed
+3 -16

No files matched your search

-12
View File
@@ -530,18 +530,6 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
{
damage += int32(m_caster->GetTotalAttackPowerValue(BASE_ATTACK)*0.08f);
}
//Mangle Bonus for the initial damage of Lacerate and Rake
if((m_spellInfo->SpellFamilyFlags.IsEqual(0x1000,0,0) && m_spellInfo->SpellIconID==494) ||
(m_spellInfo->SpellFamilyFlags.IsEqual(0,0x100,0) && m_spellInfo->SpellIconID==2246))
{
Unit::AuraEffectList const& mDummyAuras = unitTarget->GetAurasByType(SPELL_AURA_DUMMY);
for(Unit::AuraEffectList::const_iterator i = mDummyAuras.begin(); i != mDummyAuras.end(); ++i)
if((*i)->GetSpellProto()->SpellFamilyFlags[1] & 0x00000440 && (*i)->GetSpellProto()->SpellFamilyName==SPELLFAMILY_DRUID)
{
damage = int32(damage*(100.0f+(*i)->GetAmount())/100.0f);
break;
}
}
break;
}
case SPELLFAMILY_ROGUE: