From 3c2f0ad6a5206eaf3a126ee0481d00e008b424b6 Mon Sep 17 00:00:00 2001 From: Azra Victor Date: Thu, 24 Jun 2021 12:45:19 +0200 Subject: [PATCH] Small bugfix for jumping attacks again --- src/gameplay/match/match.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gameplay/match/match.java b/src/gameplay/match/match.java index 7bdbbdf..1e62f8a 100644 --- a/src/gameplay/match/match.java +++ b/src/gameplay/match/match.java @@ -509,8 +509,9 @@ public class match { || (!atk.isSpecial() && c.getCurrentframe().isNormalCancellable())); if(attackIsPossible) { if(c.getStatus() == Status.JUMPING) { + ArrayList af = new ArrayList<>(c.getFrames()); c.clearNextFrames(); - for(int i = 0; (i < c.getFrames().size() - 1) && (i < atk.getFrame().size()); i++) { + for(int i = 0; (i < af.size() - 1) && (i < atk.getFrame().size()); i++) { Frame jumpf = c.getFrames().get(i+1); jumpf.cloneWithoutMovement(atk.getFrame().get(i)); c.addSingleFrame(jumpf);