The number of skills points a trainer can teach is based either on its base

values or on its modified ones depending on the new setting 'trainers training
 skills based on base skill' value
pull/578/head
CedricMocquillon 5 years ago
parent 281cef9769
commit 1aa4f6bf96

@ -154,7 +154,7 @@ namespace MWGui
if (price > player.getClass().getContainerStore(player).count(MWWorld::ContainerStore::sGoldId))
return;
if (mPtr.getClass().getSkill(mPtr, skillId) <= pcStats.getSkill (skillId).getBase ())
if (getSkillForTraining(mPtr.getClass().getNpcStats(mPtr), skillId) <= pcStats.getSkill(skillId).getBase())
{
MWBase::Environment::get().getWindowManager()->messageBox ("#{sServiceTrainingWords}");
return;

Loading…
Cancel
Save