Core/Players: Remove duplicated trait configs

This commit is contained in:
Shauren
2024-08-05 12:26:46 +02:00
parent 66abfd1c53
commit dabe1f85df
3 changed files with 28 additions and 1 deletions

View File

@@ -6048,6 +6048,9 @@ void Spell::EffectCreateTraitTreeConfig()
if (!target)
return;
if (target->IsLoading() && target->m_activePlayerData->TraitConfigs.empty())
return; // traits not loaded yet
WorldPackets::Traits::TraitConfig newConfig;
newConfig.Type = TraitMgr::GetConfigTypeForTree(effectInfo->MiscValue);
if (newConfig.Type != TraitConfigType::Generic)