Browse Source

moving in the air with movebuff will result in immediate ground

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
491519216c
  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