summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-19 17:32:28 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-19 17:32:28 +0000
commitdccd64f85173ad6a490b16d7b8ad83529114d401 (patch)
tree5bf31fbf42193e1bfea5f4e4d69ba2c908a88499 /crawl-ref/source/abl-show.cc
parent09368bdee93d7cfeef2f2f6483a3d301239a6bff (diff)
downloadcrawl-ref-dccd64f85173ad6a490b16d7b8ad83529114d401.tar.gz
crawl-ref-dccd64f85173ad6a490b16d7b8ad83529114d401.zip
Spatial distortion heals blink frogs.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1062 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r--crawl-ref/source/abl-show.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc
index 90c9dead7a..01c7cd9a49 100644
--- a/crawl-ref/source/abl-show.cc
+++ b/crawl-ref/source/abl-show.cc
@@ -133,7 +133,7 @@ ability_type god_abilities[MAX_NUM_GODS][MAX_GOD_ABILITIES] =
{ ABIL_ELYVILON_LESSER_HEALING, ABIL_ELYVILON_PURIFICATION,
ABIL_ELYVILON_HEALING, ABIL_ELYVILON_RESTORATION,
ABIL_ELYVILON_GREATER_HEALING },
- // Lucy
+ // Lugonu
{ ABIL_LUGONU_ABYSS_EXIT, ABIL_LUGONU_BEND_SPACE,
ABIL_LUGONU_SUMMON_DEMONS, ABIL_NON_ABILITY,
ABIL_LUGONU_ABYSS_ENTER }
@@ -260,7 +260,7 @@ static const struct ability_def Ability_List[] =
{ ABIL_ELYVILON_RESTORATION, "Restoration", 3, 0, 400, 3, ABFLAG_NONE },
{ ABIL_ELYVILON_GREATER_HEALING, "Greater Healing", 6, 0, 600, 4, ABFLAG_NONE },
- // Lucy
+ // Lugonu
{ ABIL_LUGONU_ABYSS_EXIT, "Depart the Abyss", 0, 0, 100, 10, ABFLAG_PAIN },
{ ABIL_LUGONU_BEND_SPACE, "Bend Space", 1, 0, 50, 0, ABFLAG_PAIN },
{ ABIL_LUGONU_SUMMON_DEMONS, "Summon Abyssal Servants", 7, 0, 100, 5, ABFLAG_NONE },
@@ -2151,9 +2151,12 @@ static int lugonu_warp_monster(int x, int y, int pow, int)
return (1);
}
- if (!check_mons_resist_magic(&mon, pow))
+ const int damage = 1 + random2(pow / 6);
+ if (mon.type == MONS_BLINK_FROG)
+ mon.heal(damage, false);
+ else if (!check_mons_resist_magic(&mon, pow))
{
- mon.hurt(&you, 1 + random2(pow / 6));
+ mon.hurt(&you, damage);
if (!mon.alive())
return (1);
}