Merge pull request #141 from hermensbas/fix/hotfix_till_core_merge

[HOTFIX] Wrong class/race learning throw skill
This commit is contained in:
bashermens
2026-01-09 00:51:39 +01:00
committed by GitHub

View File

@@ -12346,6 +12346,10 @@ bool Player::IsSpellFitByClassAndRace(uint32 spell_id) const
if (_spell_idx->second->ClassMask && (_spell_idx->second->ClassMask & classmask) == 0) if (_spell_idx->second->ClassMask && (_spell_idx->second->ClassMask & classmask) == 0)
continue; continue;
// skip wrong class and race skill saved in SkillRaceClassInfo.dbc
if (!GetSkillRaceClassInfo(_spell_idx->second->SkillLine, getRace(), getClass()))
continue;
return true; return true;
} }