[7740] More correct flags in trainer list data for profession ranks. Author: VladimirMangos

Note: this is not fix problem with gren show recently learned non-first rank of primary profession.

    Thanks to Seizerkiller for help in reseach.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-01 01:33:08 -05:00
parent 8a57a94eca
commit 85fbe3ada2
3 changed files with 13 additions and 9 deletions

View File

@@ -3785,7 +3785,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;
}