Skip to content

Commit

Permalink
updated db2 structs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovahlord committed Oct 11, 2024
1 parent ca219d3 commit 4ff8eb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion WowPacketParser/SQL/Builders/UnitMisc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ public static string CreatureTemplateNonWDB(Dictionary<WowGuid, Unit> 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();
}
}

Expand Down

0 comments on commit 4ff8eb7

Please sign in to comment.