Core/BattlePets: Set Allow = false; in SMSG_QUERY_BATTLE_PET_NAME_RESPONSE when name is empty

Port From (https://github.com/TrinityCore/TrinityCore/commit/e9e69ed978687768f607fad08aa6f0bafa9b2359)
This commit is contained in:
hondacrx
2021-11-23 20:46:19 -05:00
parent e42059ac2b
commit c8a395b918
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -399,7 +399,7 @@ namespace Game.BattlePets
return;
pet.PacketInfo.Name = name;
pet.NameTimestamp = !pet.PacketInfo.Name.IsEmpty() ? GameTime.GetGameTime() : 0;
pet.NameTimestamp = GameTime.GetGameTime();
pet.DeclinedName = new DeclinedName();
if (declinedName != null)