mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-31 01:23:47 +00:00
Compare commits
1 Commits
9dd35e78fe
...
e-branch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29fbef3c9c |
@@ -12346,6 +12346,10 @@ bool Player::IsSpellFitByClassAndRace(uint32 spell_id) const
|
||||
if (_spell_idx->second->ClassMask && (_spell_idx->second->ClassMask & classmask) == 0)
|
||||
continue;
|
||||
|
||||
// skip wrong class and race skill saved in SkillRaceClassInfo.dbc
|
||||
if (!GetSkillRaceClassInfo(_spell_idx->second->SkillLine, getRace(), getClass()))
|
||||
continue;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user