Skip to content

Commit

Permalink
Material restriction applies
Browse files Browse the repository at this point in the history
  • Loading branch information
Venera3 committed Dec 16, 2020
1 parent 2d2f156 commit e6755cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ static const efftype_id effect_run( "run" );
static const efftype_id effect_stunned( "stunned" );
static const efftype_id effect_supercharged( "supercharged" );
static const efftype_id effect_tied( "tied" );
static const efftype_id effect_venom_dmg( "venom_dmg" );
static const efftype_id effect_venom_weaken( "venom_weaken" );
static const efftype_id effect_webbed( "webbed" );

static const itype_id itype_corpse( "corpse" );
Expand Down Expand Up @@ -1289,6 +1291,8 @@ bool monster::is_immune_effect( const efftype_id &effect ) const

if( effect == effect_paralyzepoison ||
effect == effect_badpoison ||
effect == effect_venom_dmg ||
effect == effect_venom_weaken ||
effect == effect_poison ) {
return !has_flag( MF_WARM ) ||
( !made_of( material_id( "flesh" ) ) && !made_of( material_id( "iflesh" ) ) );
Expand Down

0 comments on commit e6755cd

Please sign in to comment.