Core/Spells: Enchanting items using a vellum is no longer possible in trade
Closes issue #2990. --HG-- branch : trunk
This commit is contained in:
@@ -5594,6 +5594,9 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||||||
// check trade slot case (last, for allow catch any another cast problems)
|
// check trade slot case (last, for allow catch any another cast problems)
|
||||||
if (m_targets.getTargetMask() & TARGET_FLAG_TRADE_ITEM)
|
if (m_targets.getTargetMask() & TARGET_FLAG_TRADE_ITEM)
|
||||||
{
|
{
|
||||||
|
if (m_CastItem)
|
||||||
|
return SPELL_FAILED_ITEM_ENCHANT_TRADE_WINDOW;
|
||||||
|
|
||||||
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||||
return SPELL_FAILED_NOT_TRADING;
|
return SPELL_FAILED_NOT_TRADING;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user