Skip to content

Commit

Permalink
Fix order of lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrybk committed Jan 16, 2025
1 parent 46dabd4 commit d6fd255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Misc.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3767,9 +3767,9 @@ sub getBestTarget {
$monster->{attack_failedLOS} = time;
next;
}
my $priority = $priority{$name} ? $priority{$name} : 0;

my $name = lc $monster->{name};
my $priority = $priority{$name} ? $priority{$name} : 0;
if (!defined($bestTarget) || ($priority > $highestPri)) {
$highestPri = $priority{$name};
$smallestDist = $dist;
Expand Down

0 comments on commit d6fd255

Please sign in to comment.