diff --git a/core/src/com/me/brickbuster/state/PlayState.java b/core/src/com/me/brickbuster/state/PlayState.java index 6c77b8a..202fbd8 100644 --- a/core/src/com/me/brickbuster/state/PlayState.java +++ b/core/src/com/me/brickbuster/state/PlayState.java @@ -122,11 +122,21 @@ public class PlayState extends State { public void addShield() { shieldCount++; paddle.setY(paddle.getY() + SHIELD_HEIGHT); + for (Ball ball : balls) { + if (ball.isStuck()) { + ball.setY(ball.getY() + SHIELD_HEIGHT); + } + } } public void removeShield() { shieldCount--; paddle.setY(paddle.getY() - SHIELD_HEIGHT); + for (Ball ball : balls) { + if (ball.isStuck()) { + ball.setY(ball.getY() - SHIELD_HEIGHT); + } + } } public void ballReset() {