Skip to content

Commit

Permalink
Correct monattack logic
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Candlebury committed Dec 20, 2019
1 parent 3fcc65b commit adb9e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monattack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4833,7 +4833,7 @@ bool mattack::mon_leech_evolution( monster *z )
std::list<monster *> queens;
for( monster &candidate : g->all_monsters() ) {
if( candidate.in_species( LEECH_PLANT ) && candidate.has_flag( MF_QUEEN ) &&
rl_dist( z->pos(), candidate.pos() ) > 35 ) {
rl_dist( z->pos(), candidate.pos() ) < 35 ) {
queens.push_back( &candidate );
}
}
Expand Down

0 comments on commit adb9e66

Please sign in to comment.