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, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index e3086a1f90..39439c841d 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -2256,8 +2256,7 @@ 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 (defender->id() == MONS_BLINK_FROG
- || defender->id() == MONS_PRINCE_RIBBIT)
+ if (mons_genus(defender_as_monster()->type) == MONS_BLINK_FROG)
{
if (one_chance_in(5))
{