[Quest API] Resolves traindiscs and scribespells issues in Perl/Lua. (#1249)

This commit is contained in:
Alex authored and GitHub committed 2021-02-14 19:15:09 -05:00
1 parent 1bc9e8aff2
commit 65704274cb
2 files changed
+25 -6

No files matched your search

+2
View File
@@ -10091,6 +10091,8 @@ std::vector<int> Client::GetScribeableSpells(uint8 min_level, uint8 max_level) {
bool scribeable = false;
if (!IsValidSpell(spell_id))
continue;
if (IsDiscipline(spell_id))
continue;
if (spells[spell_id].classes[WARRIOR] == 0)
continue;
if (max_level > 0 && spells[spell_id].classes[m_pp.class_ - 1] > max_level)