No set back no deal (on the paper).
This commit is contained in:
parent
24b25406a0
commit
7994961684
|
@ -281,7 +281,17 @@ public class Magic {
|
||||||
*/
|
*/
|
||||||
public static boolean skipPaper(final PlayerMoveData thisMove, final PlayerMoveData lastMove, final MovingData data) {
|
public static boolean skipPaper(final PlayerMoveData thisMove, final PlayerMoveData lastMove, final MovingData data) {
|
||||||
// TODO: Confine to from at block level (offset 0)?
|
// TODO: Confine to from at block level (offset 0)?
|
||||||
final double setBackYDistance = thisMove.to.getY() - data.getSetBackY();
|
final double setBackYDistance;
|
||||||
|
if (data.hasSetBack()) {
|
||||||
|
setBackYDistance = thisMove.to.getY() - data.getSetBackY();
|
||||||
|
}
|
||||||
|
// Skip being all too forgiving here.
|
||||||
|
// else if (thisMove.touchedGround) {
|
||||||
|
// setBackYDistance = 0.0;
|
||||||
|
// }
|
||||||
|
else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return !lastMove.toIsValid && data.sfJumpPhase == 0 && thisMove.multiMoveCount > 0
|
return !lastMove.toIsValid && data.sfJumpPhase == 0 && thisMove.multiMoveCount > 0
|
||||||
&& setBackYDistance > 0.0 && setBackYDistance < PAPER_DIST
|
&& setBackYDistance > 0.0 && setBackYDistance < PAPER_DIST
|
||||||
&& thisMove.yDistance > 0.0 && thisMove.yDistance < PAPER_DIST && inAir(thisMove);
|
&& thisMove.yDistance > 0.0 && thisMove.yDistance < PAPER_DIST && inAir(thisMove);
|
||||||
|
|
Loading…
Reference in New Issue