Core/Players: Reenable transmog

Port From (https://github.com/TrinityCore/TrinityCore/commit/d27d0e0e3c004e7562c63b9527035095efd30974)
This commit is contained in:
Hondacrx
2025-08-25 21:00:34 -04:00
parent de9f0f9a7e
commit 2852828008
5 changed files with 142 additions and 3 deletions
+13
View File
@@ -1167,6 +1167,19 @@ namespace Game
features.SpeakForMeAllowed = false;
foreach (var (gameRule, value) in Global.WorldMgr.GetGameRules())
{
GameRuleValuePair rule = new();
rule.Rule = (int)gameRule;
if (value is float)
rule.ValueF = (float)value;
else
rule.Value = Convert.ToInt32(value);
features.GameRules.Add(rule);
}
SendPacket(features);
}