*Add more Player::CanUseAttackType checks in places where item bonuses are applied.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2010-07-26 16:08:55 +02:00
1 parent f3e97bfaae
commit 7b87ab4de7
4 files changed
+26 -19

No files matched your search

+1 -1
View File
@@ -666,7 +666,7 @@ void Player::UpdateExpertise(WeaponAttackType attack)
int32 expertise = int32(GetRatingBonusValue(CR_EXPERTISE));
Item *weapon = GetWeaponForAttack(attack);
Item *weapon = GetWeaponForAttack(attack, true);
AuraEffectList const& expAuras = GetAuraEffectsByType(SPELL_AURA_MOD_EXPERTISE);
for (AuraEffectList::const_iterator itr = expAuras.begin(); itr != expAuras.end(); ++itr)