From f7b184dd1dcd0be32f85ad07dcf093870041365b Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Mon, 2 Sep 2024 22:52:49 -0400 Subject: [PATCH] Core/Players: Remove duplicated trait configs Port From (https://github.com/TrinityCore/TrinityCore/commit/dabe1f85df30610c5287ae6d8214d325e6595387) --- Source/Game/Spells/SpellEffects.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index d05391f05..d86065976 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -5808,6 +5808,9 @@ namespace Game.Spells if (target == null) return; + if (target.IsLoading() && target.m_activePlayerData.TraitConfigs.Empty()) + return; // traits not loaded yet + TraitConfigPacket newConfig = new(); newConfig.Type = TraitMgr.GetConfigTypeForTree(effectInfo.MiscValue); if (newConfig.Type != TraitConfigType.Generic)