Core/Spells: Remove hardcoded value for dual wield talent removal and handle them for all classes

Also fix IsAffectingSpell compile errors after recent merge
This commit is contained in:
Shocker committed 2011-11-27 00:13:50 +02:00
1 parent 56449d2cbe
commit 5b6b8dd577
3 files changed
+15 -4

No files matched your search

+1 -1
View File
@@ -1529,7 +1529,7 @@ uint32 Unit::CalcArmorReducedDamage(Unit* victim, const uint32 damage, SpellInfo
{
if ((*itr)->GetSpellInfo()->EquippedItemClass == -1)
{
if (!spellInfo || (*itr)->IsAffectedOnSpell(spellInfo) || (*itr)->GetMiscValue() & spellInfo->GetSchoolMask())
if (!spellInfo || (*itr)->IsAffectingSpell(spellInfo) || (*itr)->GetMiscValue() & spellInfo->GetSchoolMask())
bonusPct += (*itr)->GetAmount();
else if (!(*itr)->GetMiscValue() && !(*itr)->HasSpellClassMask())
bonusPct += (*itr)->GetAmount();