Core/Items: Disable effects on items marked as legacy

Port From (https://github.com/TrinityCore/TrinityCore/commit/c34e0f80a0337ba582aeee17a478081f99a69686)
This commit is contained in:
hondacrx
2021-09-21 20:15:08 -04:00
parent 333afc8ba6
commit 64e1b9e34f
3 changed files with 79 additions and 68 deletions
+1 -1
View File
@@ -3817,7 +3817,7 @@ namespace Game.Entities
void ApplyItemEquipSpell(Item item, bool apply, bool formChange = false)
{
if (item == null)
if (item == null || item.GetTemplate().GetFlags().HasFlag(ItemFlags.Legacy))
return;
foreach (ItemEffectRecord effectData in item.GetEffects())