]> granicus.if.org Git - nethack/commitdiff
vortexes are not really alive
authorcohrs <cohrs>
Sat, 2 Feb 2002 03:50:53 +0000 (03:50 +0000)
committercohrs <cohrs>
Sat, 2 Feb 2002 03:50:53 +0000 (03:50 +0000)
add vortexes to the set of nonliving() monsters

include/mondata.h

index f9e03c934ec802d561f747f094b41ed62f5fd189..15237835bb25b18947970cd4057889eb92943169 100644 (file)
 #define is_mind_flayer(ptr)    ((ptr) == &mons[PM_MIND_FLAYER] || \
                                 (ptr) == &mons[PM_MASTER_MIND_FLAYER])
 
-#define nonliving(ptr)         (is_golem(ptr) || is_undead(ptr))
+#define nonliving(ptr)         (is_golem(ptr) || is_undead(ptr) || \
+                                (ptr)->mlet == S_VORTEX)
 
 /* Used for conduct with corpses, tins, and digestion attacks */
 /* G_NOCORPSE monsters might still be swallowed as a purple worm */