From 386cdc8c18f97ef8b35f3f1907adab52923400c5 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 9 Jan 2025 17:58:27 -0600 Subject: [PATCH] cant change altitude while stunned --- src/engine/objects/AbstractCharacter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/AbstractCharacter.java b/src/engine/objects/AbstractCharacter.java index 3c942a8f..b804f834 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -499,7 +499,8 @@ public abstract class AbstractCharacter extends AbstractWorldObject { if(flyer.effects.containsKey("MoveBuff")){ canFly = false; } - + if(flyer.bonuses.getBool(ModType.Stunned, SourceType.None)) + canFly = false; return canFly;