diff options
author | thenecromancer <none@none> | 2010-07-31 13:49:13 +0200 |
---|---|---|
committer | thenecromancer <none@none> | 2010-07-31 13:49:13 +0200 |
commit | bdf20fa4204c89207c97b5ab9175d7ad504142f6 (patch) | |
tree | 095e7a0c2059b2f3dd3f70e63636d4593ccf02a8 /src | |
parent | 99efabdbd396b4d56d0827d49997ccc0278b56df (diff) |
Fix exploit with Shiv giving 100% chance to apply any enchant on offhand items
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Player/Player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index a5c4dc5570f..94487f5d9d4 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -7886,7 +7886,7 @@ void Player::CastItemCombatSpell(Unit *target, WeaponAttackType attType, uint32 ApplySpellMod(pEnchant->spellid[s],SPELLMOD_CHANCE_OF_SUCCESS,chance); // Shiv has 100% chance to apply the poison - if (FindCurrentSpellBySpellId(5938)) + if (FindCurrentSpellBySpellId(5938) && e_slot == TEMP_ENCHANTMENT_SLOT) chance = 100.0f; if (roll_chance_f(chance)) |