From 0b1cde8396cfb1a5c66755b457ce577c747c0aed Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 26 May 2022 16:17:49 -0400 Subject: [PATCH] Core/Player: Fix output of .additem command with negative count value Port From (https://github.com/TrinityCore/TrinityCore/commit/6855c81df1226a4086e2587b3f1800579f078321) --- Source/Game/Entities/Player/Player.Items.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/Game/Entities/Player/Player.Items.cs b/Source/Game/Entities/Player/Player.Items.cs index bf2555a27..9b74fc08a 100644 --- a/Source/Game/Entities/Player/Player.Items.cs +++ b/Source/Game/Entities/Player/Player.Items.cs @@ -5593,7 +5593,7 @@ namespace Game.Entities if (IsInWorld && update) item.SendUpdateToPlayer(this); item.SetState(ItemUpdateState.Changed, this); - return remcount; + return count; } } } @@ -5628,7 +5628,7 @@ namespace Game.Entities if (IsInWorld && update) item.SendUpdateToPlayer(this); item.SetState(ItemUpdateState.Changed, this); - return remcount; + return count; } } } @@ -5662,7 +5662,7 @@ namespace Game.Entities if (IsInWorld && update) item.SendUpdateToPlayer(this); item.SetState(ItemUpdateState.Changed, this); - return remcount; + return count; } } } @@ -5690,7 +5690,7 @@ namespace Game.Entities if (IsInWorld && update) item.SendUpdateToPlayer(this); item.SetState(ItemUpdateState.Changed, this); - return remcount; + return count; } } } @@ -5725,7 +5725,7 @@ namespace Game.Entities if (IsInWorld && update) item.SendUpdateToPlayer(this); item.SetState(ItemUpdateState.Changed, this); - return remcount; + return count; } } } @@ -5758,7 +5758,7 @@ namespace Game.Entities if (IsInWorld && update) item.SendUpdateToPlayer(this); item.SetState(ItemUpdateState.Changed, this); - return remcount; + return count; } } } @@ -5787,7 +5787,7 @@ namespace Game.Entities if (IsInWorld && update) item.SendUpdateToPlayer(this); item.SetState(ItemUpdateState.Changed, this); - return remcount; + return count; } } } @@ -5816,7 +5816,7 @@ namespace Game.Entities if (IsInWorld && update) item.SendUpdateToPlayer(this); item.SetState(ItemUpdateState.Changed, this); - return remcount; + return count; } } }