Small bugfix for jumping attacks again
This commit is contained in:
parent
fdc826f474
commit
3c2f0ad6a5
@ -509,8 +509,9 @@ public class match {
|
|||||||
|| (!atk.isSpecial() && c.getCurrentframe().isNormalCancellable()));
|
|| (!atk.isSpecial() && c.getCurrentframe().isNormalCancellable()));
|
||||||
if(attackIsPossible) {
|
if(attackIsPossible) {
|
||||||
if(c.getStatus() == Status.JUMPING) {
|
if(c.getStatus() == Status.JUMPING) {
|
||||||
|
ArrayList<Frame> af = new ArrayList<>(c.getFrames());
|
||||||
c.clearNextFrames();
|
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);
|
Frame jumpf = c.getFrames().get(i+1);
|
||||||
jumpf.cloneWithoutMovement(atk.getFrame().get(i));
|
jumpf.cloneWithoutMovement(atk.getFrame().get(i));
|
||||||
c.addSingleFrame(jumpf);
|
c.addSingleFrame(jumpf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user