From 67e55ab0a062302f4607716a25cc4438d41dbb68 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 30 Aug 2024 19:00:50 -0500 Subject: [PATCH] no move buff while flying --- src/engine/objects/PlayerCharacter.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index c8d86207..145f2449 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4828,8 +4828,11 @@ public class PlayerCharacter extends AbstractCharacter { } if(this.isFlying()){ - if(this.getBonuses() != null && this.getBonuses().getFloat(ModType.Speed,SourceType.BUFF) > 0){ - GroundPlayer(this); + if(this.getBonuses() != null){ + float speedMod = this.getBonuses().getFloatPercentPositive(ModType.Speed,SourceType.None); + if(speedMod > 0) { + GroundPlayer(this); + } } }