summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godabil.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-20 14:06:24 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-20 14:06:24 +0100
commit948af24915dbdb673b1d45c02b416c2c557c9bd1 (patch)
tree71e4f8f18e11d73026520bfd1b4020e2a94c8e8c /crawl-ref/source/godabil.cc
parent14cc4b127e0ec49f6ac45d8b4d5a23a32b9ea065 (diff)
downloadcrawl-ref-948af24915dbdb673b1d45c02b416c2c557c9bd1.tar.gz
crawl-ref-948af24915dbdb673b1d45c02b416c2c557c9bd1.zip
Slouch shouldn't damage those who can't move.
Diffstat (limited to 'crawl-ref/source/godabil.cc')
-rw-r--r--crawl-ref/source/godabil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/godabil.cc b/crawl-ref/source/godabil.cc
index 520f12f32b..f9280b3948 100644
--- a/crawl-ref/source/godabil.cc
+++ b/crawl-ref/source/godabil.cc
@@ -1258,7 +1258,7 @@ bool ponderousify_armour()
static int _slouch_monsters(coord_def where, int pow, int, actor* agent)
{
monsters* mon = monster_at(where);
- if (mon == NULL)
+ if (mon == NULL || mons_is_stationary(mon))
return (0);
int dmg = (mon->speed - 1000/player_movement_speed()/player_speed());