Core/Players: Remove duplicated trait configs
Port From (https://github.com/TrinityCore/TrinityCore/commit/dabe1f85df30610c5287ae6d8214d325e6595387)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user