From a9d1d3f2b0758a861887b584e8a115b09994241f Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 25 Apr 2020 00:42:26 -0400 Subject: [PATCH] Core/Spells: Fixed Spell::CheckCast for targeting items trade with lockpicking Port From (https://github.com/TrinityCore/TrinityCore/commit/3b6e5a87d83989151d434d871dfa67ad4f9a2013) --- Source/Game/Spells/Spell.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index f2cf17b8f..d9fd1a1a1 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -4907,7 +4907,7 @@ namespace Game.Spells { TradeData pTrade = m_caster.ToPlayer().GetTradeData(); if (pTrade != null) - pTempItem = pTrade.GetTraderData().GetItem((TradeSlots)m_targets.GetItemTargetGUID().GetLowValue()); + pTempItem = pTrade.GetTraderData().GetItem(TradeSlots.NonTraded); } else if (Convert.ToBoolean(m_targets.GetTargetMask() & SpellCastTargetFlags.Item)) pTempItem = m_caster.ToPlayer().GetItemByGuid(m_targets.GetItemTargetGUID());