From 9d9c4dca8ab6f0cb0a2e7fecc7548613e48241ac Mon Sep 17 00:00:00 2001 From: Damien Date: Fri, 14 May 2021 10:44:35 +0200 Subject: [PATCH] fleche tranpercante --- core/src/sagittarius/model/Arrow.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/src/sagittarius/model/Arrow.java b/core/src/sagittarius/model/Arrow.java index 73c0f5a..76d38f6 100644 --- a/core/src/sagittarius/model/Arrow.java +++ b/core/src/sagittarius/model/Arrow.java @@ -199,11 +199,7 @@ public class Arrow extends EntityQuad { Player player = (Player) actor; if (player == GameScreen.playerCurrent && TTL > 19.5) continue; if (Intersector.overlapConvexPolygons(player.hitbox, this.hitbox)) { - landed = true; GameScreen.removePlayer(player); - GameScreen.arrows.removeActor(this); - GameScreen.nextPlayer(); - GameScreen.setFocus(GameScreen.playerCurrent); break; } }