Fixes some unseen combat ai jank

This commit is contained in:
Verkister
2021-06-14 01:34:12 -04:00
committed by VirgoBot
parent 6dc1c76a74
commit 20535eb0b4
@@ -13,7 +13,17 @@
// We conserve ammo (or can't shoot) so walk closer
if(get_dist(holder, target_last_seen_turf) > 1)
return give_destination(target_last_seen_turf, 1, TRUE) // Sets stance as well
<<<<<<< HEAD
// We're right there, look around?
=======
// We last saw them next to us, so do a blind attack on that tile.
else if(melee_on_tile(target_last_seen_turf) != ATTACK_SUCCESSFUL && intelligence_level >= AI_NORMAL)
var/obj/O = find_escape_route()
if(istype(O))
return give_destination(get_turf(O), 0, TRUE)
else
return find_target()
>>>>>>> c9873ff... Fixes some unseen combat ai jank (#8116)
else
return find_target()
// Shoot in their direction angrily