Don't let rolling boulder beetles push (ardl)
authorNicholas Feinberg <pleasingfung@gmail.com>
Thu, 22 Oct 2020 21:52:25 +0000 (14:52 -0700)
committerNicholas Feinberg <pleasingfung@gmail.com>
Thu, 22 Oct 2020 21:53:20 +0000 (14:53 -0700)
It's bad boulderfeel.

crawl-ref/source/mon-act.cc

index bb41415..5ea049b 100644 (file)
@@ -2767,6 +2767,10 @@ static bool _mons_can_displace(const monster* mpusher,
     if (mons_is_projectile(*mpusher) || mons_is_projectile(*mpushee))
         return false;
 
+    // Likewise, OOBs (orbs of beetle)
+    if (mpusher->has_ench(ENCH_ROLLING) || mpushee->has_ench(ENCH_ROLLING))
+        return false;
+
     // Fleeing monsters cannot push past other fleeing monsters
     // (This helps to prevent some traffic jams in confined spaces)
     if (mons_is_fleeing(*mpusher) && mons_is_fleeing(*mpushee))