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.
1 parent 0473ef4 commit eb1acabCopy full SHA for eb1acab
src/ranged.cpp
@@ -2748,6 +2748,12 @@ target_handler::trajectory target_ui::run()
2748
src = you->pos_bub();
2749
update_target_list();
2750
2751
+ if( mode == TargetMode::Reach && targets.empty() ) {
2752
+ add_msg( m_info, _( "No hostile creature in reach." ) );
2753
+ traj.clear();
2754
+ return traj; // nothing to attack.
2755
+ }
2756
+
2757
if( activity && activity->abort_if_no_targets && targets.empty() ) {
2758
// this branch is taken when already shot once and re-entered
2759
// aiming, if no targets are available we want to abort so
0 commit comments