Skip to content

Commit

Permalink
Fix flying insects not benefiting from their intended effect resistan…
Browse files Browse the repository at this point in the history
…ce (#63769)

Co-authored-by: RenechCDDA <[email protected]>
  • Loading branch information
Venera3 and RenechCDDA authored Feb 25, 2023
1 parent bb503ae commit 4c90f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" ||
Expand Down

0 comments on commit 4c90f5b

Please sign in to comment.