Fix issue with spells that didn't make sense to be innate

This commit is contained in:
Michael Cook (mackal)
2018-02-01 18:55:16 -05:00
parent 3c794cfc07
commit c21293e508
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -2756,6 +2756,10 @@ DBnpcspells_Struct *ZoneDatabase::GetNPCSpells(uint32 iDBSpellsID)
entry.min_hp = atoi(row[7]);
entry.max_hp = atoi(row[8]);
// some spell types don't make much since to be priority 0, so fix that
if (!(entry.type & SpellTypes_Innate) && entry.priority == 0)
entry.priority = 1;
if (row[9])
entry.resist_adjust = atoi(row[9]);
else if (IsValidSpell(spell_id))