summaryrefslogtreecommitdiff
path: root/src-17_monsters-can-go-down-ramps.patch
blob: a8c3588b6172980abf2702ab7b75c29f6c0bebf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/src/monmove.cpp
+++ b/src/monmove.cpp
@@ -244,6 +244,9 @@
             return false;
         }
     } else if( p.z < pos().z && z_is_valid( pos().z ) ) {
+        if( here.has_flag( TFLAG_RAMP_DOWN, tripoint( p.xy(), p.z + 1 ) ) ) {
+            return true;
+        }
         if( !here.has_flag( TFLAG_GOES_DOWN, pos() ) ) {
             // can't go through the floor
             // you would fall anyway if there was no floor, so no need to check for that here