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

This commit is contained in:
Alex
2021-02-14 19:15:09 -05:00
committed by GitHub
parent 1bc9e8aff2
commit 65704274cb
2 changed files with 25 additions and 6 deletions
+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)