From 065c9d14eedfdfaf67e756b94244aa8bc27b565b Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Mon, 19 Aug 2024 19:26:49 -0400 Subject: [PATCH] Core/Creatures: Ignore validation of AppearanceModId 0 in equipment Port From (https://github.com/TrinityCore/TrinityCore/commit/22e657eac127e41324d8e4d7406c8b53c1ec29d4) --- Source/Game/Globals/ObjectManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Game/Globals/ObjectManager.cs b/Source/Game/Globals/ObjectManager.cs index 380129251..0e52ed63f 100644 --- a/Source/Game/Globals/ObjectManager.cs +++ b/Source/Game/Globals/ObjectManager.cs @@ -2468,7 +2468,8 @@ namespace Game continue; } - if (Global.DB2Mgr.GetItemModifiedAppearance(equipmentInfo.Items[i].ItemId, equipmentInfo.Items[i].AppearanceModId) == null) + // AppearanceModId 0 is always valid + if (equipmentInfo.Items[i].AppearanceModId != 0 && Global.DB2Mgr.GetItemModifiedAppearance(equipmentInfo.Items[i].ItemId, equipmentInfo.Items[i].AppearanceModId) == null) { Log.outError(LogFilter.Sql, "Unknown item appearance for (ID: {0}, AppearanceModID: {1}) pair in creature_equip_template.ItemID{2} creature_equip_template.AppearanceModID{3} " + "for CreatureID: {4} and ID: {5}, forced to default.",