fix: Arrow TTL killing problem
This commit is contained in:
parent
8b95bc03a5
commit
7817353e15
|
@ -146,7 +146,8 @@ public class Arrow extends EntityQuad {
|
|||
private void verifyHitting() {
|
||||
for (Actor actor : GameScreen.players.getChildren()) {
|
||||
Player player = (Player) actor;
|
||||
if (TTL < 19 && Intersector.overlapConvexPolygons(player.hitbox, this.hitbox)) {
|
||||
if (player == GameScreen.playerCurrent && TTL > 19.5) break;
|
||||
if (Intersector.overlapConvexPolygons(player.hitbox, this.hitbox)) {
|
||||
landed = true;
|
||||
GameScreen.removePlayer(player);
|
||||
GameScreen.arrows.removeActor(this);
|
||||
|
|
Loading…
Reference in a new issue