Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: BevapDin <[email protected]>
  • Loading branch information
ZhilkinSerg and BevapDin authored Nov 22, 2019
1 parent 0663178 commit df855c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/map_field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1716,9 +1716,7 @@ void map::creature_in_field( Creature &critter )
}

const effect field_fx = fe.get_effect();
if( field_fx.is_null() ||
critter.is_immune_field( cur_field_id ) || field_fx.get_id().is_empty() ||
critter.is_immune_effect( field_fx.get_id() ) ) {
if( critter.is_immune_field( cur_field_id ) || critter.is_immune_effect( field_fx.get_id() ) ) {
continue;
}
bool effect_added = false;
Expand Down

0 comments on commit df855c6

Please sign in to comment.