mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Players: Remove duplicated trait configs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user