summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-22 13:54:56 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-22 13:54:56 +0100
commit86fe0e02db7ee289be861dcd572be84576de1bd1 (patch)
tree3782708ea13a9107538b9f22a85af2f3163d7be0 /crawl-ref
parente4920e5fdf6a8d2ac33b463de967b1190b9353cc (diff)
downloadcrawl-ref-86fe0e02db7ee289be861dcd572be84576de1bd1.tar.gz
crawl-ref-86fe0e02db7ee289be861dcd572be84576de1bd1.zip
Make petrified and sleeping monsters not "fast" wrt Che piety gain and slouch.
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/godabil.cc2
-rw-r--r--crawl-ref/source/mon-stuff.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/godabil.cc b/crawl-ref/source/godabil.cc
index edb1b723fb..f8b6ce9960 100644
--- a/crawl-ref/source/godabil.cc
+++ b/crawl-ref/source/godabil.cc
@@ -1256,7 +1256,7 @@ bool ponderousify_armour()
static int _slouch_monsters(coord_def where, int pow, int, actor* agent)
{
monsters* mon = monster_at(where);
- if (mon == NULL || mons_is_stationary(mon))
+ if (mon == NULL || mons_is_stationary(mon) || mon->cannot_move())
return (0);
int dmg = (mon->speed - 1000/player_movement_speed()/player_speed());
diff --git a/crawl-ref/source/mon-stuff.cc b/crawl-ref/source/mon-stuff.cc
index d0446ff563..add22f09c5 100644
--- a/crawl-ref/source/mon-stuff.cc
+++ b/crawl-ref/source/mon-stuff.cc
@@ -1731,7 +1731,7 @@ int monster_die(monsters *monster, killer_type killer,
}
// Cheibriados hates fast monsters.
- if (mons_is_fast(monster))
+ if (mons_is_fast(monster) && !monster->cannot_move())
{
did_god_conduct(DID_KILL_FAST, monster->hit_dice,
true, monster);