mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Spells: Force creating only 1 enchanting scroll when targeting a vellum with enchantments
This commit is contained in:
@@ -2382,6 +2382,7 @@ void Spell::EffectEnchantItemPerm(SpellEffIndex effIndex)
|
||||
player->DestroyItemCount(itemTarget, count, true);
|
||||
unitTarget = player;
|
||||
// and add a scroll
|
||||
damage = 1;
|
||||
DoCreateItem(effIndex, effectInfo->ItemType, m_spellInfo->HasAttribute(SPELL_ATTR0_TRADESPELL) ? ItemContext::Trade_Skill : ItemContext::NONE);
|
||||
itemTarget = NULL;
|
||||
m_targets.SetItemTarget(NULL);
|
||||
|
||||
Reference in New Issue
Block a user