From a09f085aa9ea6bea1ec9a4810144d9ca3d766ef2 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 7 Jan 2022 12:54:01 -0500 Subject: [PATCH] Core/Spells: Fix missing "Inventory is full" with spells that create more than 1 item Port From (https://github.com/TrinityCore/TrinityCore/commit/4e0da6f7d12bdbf9a333901f58903757d236c59f) --- Source/Game/Spells/Spell.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index 21047d221..e115058f8 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -6165,7 +6165,7 @@ namespace Game.Spells if (spellEffectInfo.ItemType != 0) { List dest = new(); - InventoryResult msg = target.ToPlayer().CanStoreNewItem(ItemConst.NullBag, ItemConst.NullSlot, dest, spellEffectInfo.ItemType, 1); + InventoryResult msg = target.ToPlayer().CanStoreNewItem(ItemConst.NullBag, ItemConst.NullSlot, dest, spellEffectInfo.ItemType, spellEffectInfo.CalcValue()); if (msg != InventoryResult.Ok) { ItemTemplate itemTemplate = Global.ObjectMgr.GetItemTemplate(spellEffectInfo.ItemType);