Skip to content

Commit

Permalink
Fix cond for creature_spell_list
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Apr 15, 2024
1 parent 3976654 commit 3f7414a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WowPacketParser/SQL/Builders/UnitMisc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public static string CreatureSpellLists()
if (spellList.Item1.Id % 10 == 6)
{
var creatureTemplate = creatureTemplatesDb.Where(p => p.Data.Entry == (spellList.Item1.Id / 100)).SingleOrDefault();
if (creatureTemplate != null || creatureTemplate.Data.DifficultyEntry1 != 0)
if (creatureTemplate != null && creatureTemplate.Data.DifficultyEntry1 != 0)
{
spellList.Item1.Id = (int)creatureTemplate.Data.DifficultyEntry1 * 100 + 5;
var split = spellList.Item1.Comments.Split('-');
Expand Down

0 comments on commit 3f7414a

Please sign in to comment.