[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:
VladimirMangos 2009-05-01 03:58:51 +04:00
parent baa3e199d2
commit 8e2a664fad
4 changed files with 13 additions and 10 deletions

View file

@ -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;
}