➡️ The game crashes.
This happens because the attack function scans for enemies to handle the hit test. I need to add a safeguard for this case.
Ah non, en fait ça vient du calcul de la position du "closest enemy" pour envoyer un coup dans la bonne direction.
Comme il n'existe pas, ça crash.
Corrected
Pages: 1