AardCrowley / Search-and-Destroy

Safe, Legal Search and Destroy
10 stars 14 forks source link

Fix losing target when you kill a different one #61

Closed AardNaricain closed 3 years ago

AardNaricain commented 3 years ago

When you kill any target, your target is being cleared. This is fine when you kill your selected target, but when you kill a different one it's not great. This change makes it so you keep your current target, even if their index in the last changes (like if you have target 2 selected and then kill target 1)