Core/Players: Fixed barbershop not changing model when changing gender
Port From (https://github.com/TrinityCore/TrinityCore/commit/b100917c6877a4c9a2f20a1a61f111a91e78db01)
This commit is contained in:
@@ -1347,7 +1347,13 @@ namespace Game
|
|||||||
_player.ModifyMoney(-cost);
|
_player.ModifyMoney(-cost);
|
||||||
_player.UpdateCriteria(CriteriaTypes.GoldSpentAtBarber, (ulong)cost);
|
_player.UpdateCriteria(CriteriaTypes.GoldSpentAtBarber, (ulong)cost);
|
||||||
|
|
||||||
_player.SetNativeSex((Gender)packet.NewSex);
|
if (_player.GetNativeSex() != (Gender)packet.NewSex)
|
||||||
|
{
|
||||||
|
_player.SetNativeSex((Gender)packet.NewSex);
|
||||||
|
_player.InitDisplayIds();
|
||||||
|
_player.RestoreDisplayId(false);
|
||||||
|
}
|
||||||
|
|
||||||
_player.SetCustomizations(packet.Customizations);
|
_player.SetCustomizations(packet.Customizations);
|
||||||
|
|
||||||
_player.UpdateCriteria(CriteriaTypes.VisitBarberShop, 1);
|
_player.UpdateCriteria(CriteriaTypes.VisitBarberShop, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user