From 1378bc803010d291406f4cd2bf63f8e26e4cbd6c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 11 May 2024 17:59:13 -0500 Subject: [PATCH] attempting to fly with movement buff will ground you --- src/engine/objects/PlayerCharacter.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 642a36e8..8be570b4 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4814,6 +4814,24 @@ public class PlayerCharacter extends AbstractCharacter { if (!this.isAlive()) return; + if(this.isFlying()){ + if (this.containsEffect(487604089)) { + PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 57584498, 40, false); + } + if (this.containsEffect(296836988)) { + PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 57584498, 40, false); + } + if (this.containsEffect(163174641)) { + PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 57584498, 40, false); + } + if (this.containsEffect(163419371)) { + PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 57584498, 40, false); + } + if (this.containsEffect(79883622)) { + PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 57584498, 40, false); + } + } + updateLocation(); updateMovementState(); updateRegen();