Core/Spells: Enchanting items using a vellum is no longer possible in trade

Closes issue #2990.

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-11-04 21:59:27 +01:00
parent 54b11cce01
commit f658176df8
+3
View File
@@ -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;