Skip to content

Commit

Permalink
Allow Ru abilities under Silence.
Browse files Browse the repository at this point in the history
Ru's abilities aren't invocations to the god, but rather ways you
can use the power you've gained through sacrifice, so you don't
need to be able to be heard in order to use them.
  • Loading branch information
cbuchananhowland committed Sep 19, 2014
1 parent ed37a4e commit 7db326c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crawl-ref/source/ability.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,8 @@ static bool _check_ability_possible(const ability_def& abil,
return false;
}

if (silenced(you.pos()) && !you_worship(GOD_NEMELEX_XOBEH))
if (silenced(you.pos()) && !you_worship(GOD_NEMELEX_XOBEH)
&& !you_worship(GOD_RU))
{
talent tal = get_talent(abil.ability, false);
if (tal.is_invocation)
Expand Down Expand Up @@ -4043,7 +4044,9 @@ vector<ability_type> get_god_abilities(bool include_unusable, bool ignore_piety)
// Remaining abilities are unusable if under penance, or if silenced if not
// Nemelex abilities.
if (!include_unusable && (player_under_penance()
|| silenced(you.pos()) && !you_worship(GOD_NEMELEX_XOBEH)))
|| silenced(you.pos())
&& !you_worship(GOD_NEMELEX_XOBEH)
&& !you_worship(GOD_RU)))
{
return abilities;
}
Expand Down

0 comments on commit 7db326c

Please sign in to comment.