diff options
| author | n0n4m3 <none@none> | 2010-01-13 14:48:19 +0300 |
|---|---|---|
| committer | n0n4m3 <none@none> | 2010-01-13 14:48:19 +0300 |
| commit | f2dcf0270f7bce6d026680e91783e4a0c6eeacb6 (patch) | |
| tree | e698b5686142fcf0d5f8007c1499335078b37656 | |
| parent | 7a4e793c027a9f706cbaefe5ebe9f9fe1d96b87e (diff) | |
Fixed high damage exploit
--HG--
branch : trunk
| -rw-r--r-- | src/game/SpellAuraEffects.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/SpellAuraEffects.cpp b/src/game/SpellAuraEffects.cpp index 1492d586943..53e066514df 100644 --- a/src/game/SpellAuraEffects.cpp +++ b/src/game/SpellAuraEffects.cpp @@ -4755,7 +4755,7 @@ void AuraEffect::HandleAuraModWeaponCritPercent(AuraApplication const * aurApp, return; for (int i = 0; i < MAX_ATTACK; ++i) - if(Item* pItem = ((Player*)target)->GetWeaponForAttack(WeaponAttackType(i))) + if(Item* pItem = ((Player*)target)->GetWeaponForAttack(WeaponAttackType(i), true)) ((Player*)target)->_ApplyWeaponDependentAuraCritMod(pItem,WeaponAttackType(i),this,apply); // mods must be applied base at equipped weapon class and subclass comparison @@ -5076,7 +5076,7 @@ void AuraEffect::HandleModDamageDone(AuraApplication const * aurApp, uint8 mode, if(target->GetTypeId() == TYPEID_PLAYER) { for (int i = 0; i < MAX_ATTACK; ++i) - if(Item* pItem = ((Player*)target)->GetWeaponForAttack(WeaponAttackType(i))) + if(Item* pItem = ((Player*)target)->GetWeaponForAttack(WeaponAttackType(i), true)) ((Player*)target)->_ApplyWeaponDependentAuraDamageMod(pItem,WeaponAttackType(i),this,apply); } @@ -5163,7 +5163,7 @@ void AuraEffect::HandleModDamagePercentDone(AuraApplication const * aurApp, uint if(target->GetTypeId() == TYPEID_PLAYER) { for (int i = 0; i < MAX_ATTACK; ++i) - if(Item* pItem = ((Player*)target)->GetWeaponForAttack(WeaponAttackType(i))) + if(Item* pItem = ((Player*)target)->GetWeaponForAttack(WeaponAttackType(i), true)) ((Player*)target)->_ApplyWeaponDependentAuraDamageMod(pItem,WeaponAttackType(i),this,apply); } |
