diff options
author | Neil Moore <neil@s-z.org> | 2014-07-20 21:35:55 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-20 21:35:55 -0400 |
commit | fe1f898491cef3668a7c53195c19f5492de73479 (patch) | |
tree | c79c0abe7aa98b469721260e676d048664eb2ff4 /crawl-ref/source/ability.cc | |
parent | d487d614c421230ae864615c87ead6f8649b1491 (diff) | |
download | crawl-ref-fe1f898491cef3668a7c53195c19f5492de73479.tar.gz crawl-ref-fe1f898491cef3668a7c53195c19f5492de73479.zip |
Forget 0-piety ability letters on god switch (#8701)
Diffstat (limited to 'crawl-ref/source/ability.cc')
-rw-r--r-- | crawl-ref/source/ability.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/ability.cc b/crawl-ref/source/ability.cc index 63994566fb..a7338c9413 100644 --- a/crawl-ref/source/ability.cc +++ b/crawl-ref/source/ability.cc @@ -3728,6 +3728,15 @@ static int _is_god_ability(ability_type abil) if (abil == ABIL_NON_ABILITY) return GOD_NO_GOD; + // Not in god_abilities because players get them at 0* + // TODO: Fix that and remove the following. + if (abil == ABIL_CHEIBRIADOS_TIME_BEND) + return GOD_CHEIBRIADOS; + if (abil == ABIL_ELYVILON_LESSER_HEALING_OTHERS) + return GOD_ELYVILON; + if (abil == ABIL_TROG_BURN_SPELLBOOKS) + return GOD_TROG; + for (int i = 0; i < NUM_GODS; ++i) for (int j = 0; j < MAX_GOD_ABILITIES; ++j) { |