Core/Players: Reenable transmog
Port From (https://github.com/TrinityCore/TrinityCore/commit/d27d0e0e3c004e7562c63b9527035095efd30974)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user