diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2013-01-08 11:39:40 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2013-01-08 11:43:38 +0100 |
commit | 89770d977b22905485388c7004adca054fa9d3a0 (patch) | |
tree | a2a4691f7e8b29573d4c7d3727d610af0913e4de /crawl-ref/source/skills.cc | |
parent | 9dbaa2da25d7d643f2b2a53f9c5cfdd4bc9adf99 (diff) | |
download | crawl-ref-89770d977b22905485388c7004adca054fa9d3a0.tar.gz crawl-ref-89770d977b22905485388c7004adca054fa9d3a0.zip |
When a skill reach level 27, also disable training it in the "other" mode.
Other mode being either auto or manual depending on which one is active.
Probably the cause of #6507. It's only a display bug by the way, level 27
skills are never trained.
Diffstat (limited to 'crawl-ref/source/skills.cc')
-rw-r--r-- | crawl-ref/source/skills.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/skills.cc b/crawl-ref/source/skills.cc index 841b071288..70fb927ff3 100644 --- a/crawl-ref/source/skills.cc +++ b/crawl-ref/source/skills.cc @@ -721,7 +721,10 @@ static bool _level_up_check(skill_type sk, bool simu) { you.training[sk] = 0; if (!simu) + { you.train[sk] = 0; + you.train_alt[sk] = 0; + } return true; } |