From 5f67ff05bff2514f05b0c480b71e46dd7c3f2b90 Mon Sep 17 00:00:00 2001 From: Venera3 <72006894+Venera3@users.noreply.github.com> Date: Fri, 24 Feb 2023 19:48:05 +0100 Subject: [PATCH 1/2] bodytype fix --- src/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monster.cpp b/src/monster.cpp index c0b01164d1085..7ecd52c65b38e 100644 --- a/src/monster.cpp +++ b/src/monster.cpp @@ -1591,7 +1591,7 @@ bool monster::is_immune_effect( const efftype_id &effect ) const } if( effect == effect_downed ) { - if( type->bodytype == "insect" || type->bodytype == "insect_flying" || type->bodytype == "spider" || + if( type->bodytype == "insect" || type->bodytype == "insect flying" || type->bodytype == "spider" || type->bodytype == "crab" ) { return x_in_y( 3, 4 ); } else return type->bodytype == "snake" || type->bodytype == "blob" || type->bodytype == "fish" || From 55eef9fc3eb3b80c90eb4cb56019621659895e5a Mon Sep 17 00:00:00 2001 From: Venera3 <72006894+Venera3@users.noreply.github.com> Date: Fri, 24 Feb 2023 22:42:25 +0100 Subject: [PATCH 2/2] Update src/monster.cpp Co-authored-by: RenechCDDA <84619419+RenechCDDA@users.noreply.github.com> --- src/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monster.cpp b/src/monster.cpp index 7ecd52c65b38e..b8555229e180f 100644 --- a/src/monster.cpp +++ b/src/monster.cpp @@ -1591,7 +1591,7 @@ bool monster::is_immune_effect( const efftype_id &effect ) const } if( effect == effect_downed ) { - if( type->bodytype == "insect" || type->bodytype == "insect flying" || type->bodytype == "spider" || + if( type->bodytype == "insect" || type->bodytype == "flying insect" || type->bodytype == "spider" || type->bodytype == "crab" ) { return x_in_y( 3, 4 ); } else return type->bodytype == "snake" || type->bodytype == "blob" || type->bodytype == "fish" ||