Using find_path_to_edge to figure out if it self-destructed or not

self explanatory title,

EDIT: you can do

if (game_state.find_path_to_edge(location, game_state.game_map.TOP_LEFT))[-1] in self.enemyEdges:

Technically you need to check if it is in the specific edge that the unit is pathing to, because it is entirely possible for a unit to self-destruct on the edge opposite to the one it is trying to get to. Obviously this is very rare, so it most likely won’t make a huge difference.