From 491519216c5098d1ed5102ba10b228062c9a6626 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 15 May 2024 17:43:13 -0500 Subject: [PATCH] moving in the air with movebuff will result in immediate ground --- src/engine/gameManager/MovementManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/gameManager/MovementManager.java b/src/engine/gameManager/MovementManager.java index 14f5f35d..5def9688 100644 --- a/src/engine/gameManager/MovementManager.java +++ b/src/engine/gameManager/MovementManager.java @@ -69,6 +69,8 @@ public enum MovementManager { if (toMove.getObjectType().equals(GameObjectType.PlayerCharacter)) { if (((PlayerCharacter) toMove).isCasting()) ((PlayerCharacter) toMove).update(); + if(((PlayerCharacter) toMove).isFlying() && toMove.getEffects().containsKey("MoveBuff")) + PlayerCharacter.GroundPlayer(((PlayerCharacter) toMove)); } toMove.setIsCasting(false);