summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 39439c841d..8aef88b8a3 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -2256,7 +2256,8 @@ bool melee_attack::distortion_affects_defender()
//jmf: blink frogs *like* distortion
// I think could be amended to let blink frogs "grow" like
// jellies do {dlb}
- if (mons_genus(defender_as_monster()->type) == MONS_BLINK_FROG)
+ if (defender->atype() == ACT_MONSTER
+ && mons_genus(defender_as_monster()->type) == MONS_BLINK_FROG)
{
if (one_chance_in(5))
{