Core/Player: Fix output of .additem command with negative count value
Port From (https://github.com/TrinityCore/TrinityCore/commit/6855c81df1226a4086e2587b3f1800579f078321)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user