Core/Spells: Fix a warning in SPELL_AURA_MOD_DAMAGE_PERCENT_DONE (explicitly define which parts to check for)
--HG-- branch : trunk
This commit is contained in:
@@ -10328,8 +10328,8 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
|
|||||||
for (AuraEffectList::const_iterator i = mModDamagePercentDone.begin(); i != mModDamagePercentDone.end(); ++i)
|
for (AuraEffectList::const_iterator i = mModDamagePercentDone.begin(); i != mModDamagePercentDone.end(); ++i)
|
||||||
if ((*i)->GetMiscValue() & GetSpellSchoolMask(spellProto))
|
if ((*i)->GetMiscValue() & GetSpellSchoolMask(spellProto))
|
||||||
if (((*i)->GetSpellProto()->EquippedItemClass == -1) ||
|
if (((*i)->GetSpellProto()->EquippedItemClass == -1) ||
|
||||||
((*i)->GetSpellProto()->EquippedItemClass & spellProto->EquippedItemClass) &&
|
(((*i)->GetSpellProto()->EquippedItemClass & spellProto->EquippedItemClass) &&
|
||||||
((*i)->GetSpellProto()->EquippedItemSubClassMask & spellProto->EquippedItemSubClassMask))
|
((*i)->GetSpellProto()->EquippedItemSubClassMask & spellProto->EquippedItemSubClassMask)))
|
||||||
AddPctN(DoneTotalMod, (*i)->GetAmount());
|
AddPctN(DoneTotalMod, (*i)->GetAmount());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user