Core/Spells: Force creating only 1 enchanting scroll when targeting a vellum with enchantments

This commit is contained in:
Shauren
2019-11-26 23:20:11 +01:00
parent 3d9e21193d
commit cf0e233689

View File

@@ -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);