Browse Source

moving in the air with movebuff will result in immediate ground

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
e3a278e090
  1. 2
      src/engine/gameManager/MovementManager.java

2
src/engine/gameManager/MovementManager.java

@ -69,6 +69,8 @@ public enum MovementManager { @@ -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);

Loading…
Cancel
Save