summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/debug.cc')
-rw-r--r--crawl-ref/source/debug.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc
index a8d6a3cf5e..2cf9b2130c 100644
--- a/crawl-ref/source/debug.cc
+++ b/crawl-ref/source/debug.cc
@@ -2715,13 +2715,12 @@ void debug_stethoscope(int mon)
if (found_spell)
mprf(MSGCH_DIAGNOSTICS, "spells: %s", spl.str().c_str());
- if (mons.type == MONS_PLAYER_GHOST
- || mons.type == MONS_PANDEMONIUM_DEMON)
+ if (mons_is_ghost_demon(mons.type))
{
ASSERT(mons.ghost.get());
const ghost_demon &ghost = *mons.ghost;
mprf(MSGCH_DIAGNOSTICS, "Ghost damage: %d; brand: %d",
- ghost.damage, ghost.brand );
+ ghost.damage, ghost.brand);
}
}