mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[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:
parent
a248a1a32d
commit
64f959fb82
10 changed files with 438 additions and 183 deletions
|
|
@ -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*/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue