Fix exploit with Shiv giving 100% chance to apply any enchant on offhand items

--HG--
branch : trunk
This commit is contained in:
thenecromancer
2010-07-31 13:49:13 +02:00
parent 99efabdbd3
commit bdf20fa420
+1 -1
View File
@@ -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))