From 4ff8eb7128686368a3c05093205573c938545bb9 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Fri, 11 Oct 2024 15:48:22 +0200 Subject: [PATCH] updated db2 structs --- .../DBC/Structures/TheWarWithin/CreatureDifficultyEntry.cs | 2 +- WowPacketParser/SQL/Builders/UnitMisc.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WowPacketParser/DBC/Structures/TheWarWithin/CreatureDifficultyEntry.cs b/WowPacketParser/DBC/Structures/TheWarWithin/CreatureDifficultyEntry.cs index 4162040e84..1c40ea3503 100644 --- a/WowPacketParser/DBC/Structures/TheWarWithin/CreatureDifficultyEntry.cs +++ b/WowPacketParser/DBC/Structures/TheWarWithin/CreatureDifficultyEntry.cs @@ -9,7 +9,7 @@ public sealed class CreatureDifficultyEntry public uint ID; public int Unknown901_0; public int Unknown901_1; - public ushort FactionID; + public ushort FactionTemplateID; public int ContentTuningID; [Cardinality(8)] public int[] Flags = new int[8]; diff --git a/WowPacketParser/SQL/Builders/UnitMisc.cs b/WowPacketParser/SQL/Builders/UnitMisc.cs index 9ec3a30b56..372a587f72 100644 --- a/WowPacketParser/SQL/Builders/UnitMisc.cs +++ b/WowPacketParser/SQL/Builders/UnitMisc.cs @@ -887,7 +887,7 @@ public static string CreatureTemplateNonWDB(Dictionary units) var creatureDiff = DBC.DBC.CreatureDifficulty.Where(diff => diff.Value.CreatureID == unit.Key.GetEntry()); if (creatureDiff.Any()) { - template.Faction = creatureDiff.Select(lv => lv.Value.FactionID).First(); + template.Faction = creatureDiff.Select(lv => lv.Value.FactionTemplateID).First(); } }