diff options
| author | n0n4m3 <none@none> | 2009-12-17 06:57:01 +0100 |
|---|---|---|
| committer | n0n4m3 <none@none> | 2009-12-17 06:57:01 +0100 |
| commit | fa4685da7c9c58dca4852149c671575ed6aeb575 (patch) | |
| tree | 75ece5b88bc4803114a4516bdbb333269b7dc51e /src | |
| parent | a9c28a63a640938737e8e76b39de9b5638790dba (diff) | |
Fixed possible dual spec exploits
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index eae3418a0d7..9918779e0a9 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -7239,7 +7239,7 @@ void Player::_ApplyWeaponDependentAuraCritMod(Item *item, WeaponAttackType attac default: return; } - if (item->IsFitToSpellRequirements(aura->GetSpellProto())) + if (!item->IsBroken()&&item->IsFitToSpellRequirements(aura->GetSpellProto())) HandleBaseModValue(mod, FLAT_MOD, float (aura->GetAmount()), apply); } @@ -7274,7 +7274,7 @@ void Player::_ApplyWeaponDependentAuraDamageMod(Item *item, WeaponAttackType att default: return; } - if (item->IsFitToSpellRequirements(aura->GetSpellProto())) + if (!item->IsBroken()&&item->IsFitToSpellRequirements(aura->GetSpellProto())) HandleStatModifier(unitMod, unitModType, float(aura->GetAmount()),apply); } |
