*Fix torment the weak.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-03-16 23:54:19 +01:00
parent 94fe962982
commit 950afd2544
+7 -2
View File
@@ -8701,16 +8701,21 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
}
// Torment the weak
if (spellProto->SpellFamilyName== SPELLFAMILY_MAGE && (spellProto->SpellFamilyFlags[0]&0x20200021 || spellProto->SpellFamilyFlags[1]& 0x9000))
{
if(pVictim->HasAuraType(SPELL_AURA_MOD_DECREASE_SPEED))
{
AuraList const& mDumyAuras = GetAurasByType(SPELL_AURA_DUMMY);
for(AuraList::const_iterator i = mDumyAuras.begin(); i != mDumyAuras.end(); ++i)
{
if ((*i)->GetSpellProto()->SpellIconID == 3263 && (*i)->isAffectedOnSpell(spellProto))
if ((*i)->GetSpellProto()->SpellIconID == 3263)
{
if(pVictim->HasAuraType(SPELL_AURA_MOD_DECREASE_SPEED))
DoneTotalMod *=float((*i)->GetModifier()->m_amount + 100.f) / 100.f;
break;
}
}
}
}
// ..taken
AuraList const& mModDamagePercentTaken = pVictim->GetAurasByType(SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN);