[10050] Implement apply non-trade slot item enchanting at trade complete.

Base at original patch provided by arrai.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
VladimirMangos 2010-06-11 22:46:16 +04:00
parent a248a1a32d
commit 64f959fb82
10 changed files with 438 additions and 183 deletions

View file

@ -4519,10 +4519,6 @@ void Spell::EffectEnchantItemPerm(SpellEffectIndex eff_idx)
// add new enchanting if equipped
item_owner->ApplyEnchantment(itemTarget,PERM_ENCHANTMENT_SLOT,true);
// update trade window for show enchantment for caster in trade window
if (m_targets.m_targetMask & TARGET_FLAG_TRADE_ITEM)
p_caster->GetSession()->SendUpdateTrade();
}
void Spell::EffectEnchantItemPrismatic(SpellEffectIndex eff_idx)
@ -4581,10 +4577,6 @@ void Spell::EffectEnchantItemPrismatic(SpellEffectIndex eff_idx)
// add new enchanting if equipped
item_owner->ApplyEnchantment(itemTarget,PRISMATIC_ENCHANTMENT_SLOT,true);
// update trade window for show enchantment for caster in trade window
if (m_targets.m_targetMask & TARGET_FLAG_TRADE_ITEM)
p_caster->GetSession()->SendUpdateTrade();
}
void Spell::EffectEnchantItemTmp(SpellEffectIndex eff_idx)
@ -4712,10 +4704,6 @@ void Spell::EffectEnchantItemTmp(SpellEffectIndex eff_idx)
// add new enchanting if equipped
item_owner->ApplyEnchantment(itemTarget, TEMP_ENCHANTMENT_SLOT, true);
// update trade window for show enchantment for caster in trade window
if (m_targets.m_targetMask & TARGET_FLAG_TRADE_ITEM)
p_caster->GetSession()->SendUpdateTrade();
}
void Spell::EffectTameCreature(SpellEffectIndex /*eff_idx*/)