mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7740] More correct flags in trainer list data for profession ranks.
Note: this is not fix problem with gren show recently learned non-first rank of primary profession. Thanks to Seizerkiller for help in reseach.
This commit is contained in:
parent
baa3e199d2
commit
8e2a664fad
4 changed files with 13 additions and 10 deletions
|
|
@ -3705,7 +3705,7 @@ TrainerSpellState Player::GetTrainerSpellState(TrainerSpell const* trainer_spell
|
|||
|
||||
// check primary prof. limit
|
||||
if(spellmgr.IsPrimaryProfessionFirstRankSpell(spell->Id) && GetFreePrimaryProffesionPoints() == 0)
|
||||
return TRAINER_SPELL_RED;
|
||||
return TRAINER_SPELL_GREEN_DISABLED;
|
||||
|
||||
return TRAINER_SPELL_GREEN;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue