We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1802820 + eb1acab commit a16423aCopy full SHA for a16423a
src/ranged.cpp
@@ -2754,6 +2754,12 @@ target_handler::trajectory target_ui::run()
2754
src = you->pos_bub();
2755
update_target_list();
2756
2757
+ if( mode == TargetMode::Reach && targets.empty() ) {
2758
+ add_msg( m_info, _( "No hostile creature in reach." ) );
2759
+ traj.clear();
2760
+ return traj; // nothing to attack.
2761
+ }
2762
+
2763
if( activity && activity->abort_if_no_targets && targets.empty() ) {
2764
// this branch is taken when already shot once and re-entered
2765
// aiming, if no targets are available we want to abort so
0 commit comments