Core/Items: Implemented reagent bag
Port From (https://github.com/TrinityCore/TrinityCore/commit/6f9e359701bd75705f73f23af65affb5a5bed573)
This commit is contained in:
@@ -6833,7 +6833,7 @@ namespace Game.Spells
|
||||
// so we need to make sure there is at least one free space in the player's inventory
|
||||
if (spellEffectInfo.Effect == SpellEffectName.CreateLoot)
|
||||
{
|
||||
if (target.ToPlayer().GetFreeInventorySpace() == 0)
|
||||
if (target.ToPlayer().GetFreeInventorySlotCount(ItemSearchLocation.Inventory) == 0)
|
||||
{
|
||||
player.SendEquipError(InventoryResult.InvFull, null, null, spellEffectInfo.ItemType);
|
||||
return SpellCastResult.DontReport;
|
||||
|
||||
Reference in New Issue
Block a user