Skip to content

Commit

Permalink
Update src/monster.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
  • Loading branch information
Jamuro-g and anothersimulacrum authored Mar 12, 2021
1 parent 752f0c4 commit da7c760
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1503,9 +1503,8 @@ bool monster::melee_attack( Creature &target, float accuracy )
return false;
}

if (!sees(target) && posz() != target.posz()) {
debugmsg(string_format("Z-Level view violation: %s tried to attack %s.", disp_name(),
target.disp_name()));
if( posz() != target.posz() && !sees( target ) ) {
debugmsg( "Z-Level view violation: %s tried to attack %s.", disp_name(), target.disp_name() );
}

int hitspread = target.deal_melee_attack( this, melee::melee_hit_range( accuracy ) );
Expand Down

0 comments on commit da7c760

Please sign in to comment.