Core/Players: Remove duplicated trait configs

Port From (https://github.com/TrinityCore/TrinityCore/commit/dabe1f85df30610c5287ae6d8214d325e6595387)
This commit is contained in:
Hondacrx
2024-09-02 22:52:49 -04:00
parent 72563b8ca3
commit f7b184dd1d
+3
View File
@@ -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)