Skip to content

Commit 8d4826a

Browse files
committed
Fix training restrictions in skill menus and messages for Gnolls (eb)
If Gnolls changed their inventory, spells, or abilities in a way that modify the usual training restrictions, their skill menu would show the skill without the '+' indicated it was being trained and they would get a message to that effect, although they would actually continue training the skill normally. This commit prevents those messages and skill menu changes. It may need to be done in a better way elsewhere in the skill code, but this fix will work for now.
1 parent bc67419 commit 8d4826a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crawl-ref/source/skills.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,10 @@ static void _check_start_train()
506506

507507
static void _check_stop_train()
508508
{
509+
// Gnolls can't stop training skills.
510+
if (you.species == SP_GNOLL)
511+
return;
512+
509513
_check_inventory_skills();
510514
_check_spell_skills();
511515
_check_abil_skills();

0 commit comments

Comments
 (0)