mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/Player): trainer filter invalid class and race combination (#24333)
This commit is contained in:
@@ -12364,6 +12364,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user