From bdf20fa4204c89207c97b5ab9175d7ad504142f6 Mon Sep 17 00:00:00 2001 From: thenecromancer Date: Sat, 31 Jul 2010 13:49:13 +0200 Subject: Fix exploit with Shiv giving 100% chance to apply any enchant on offhand items --HG-- branch : trunk --- src/server/game/Entities/Player/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) -- cgit v1.2.3