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

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

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)