From 277f8bfd6902852fe59d002926299eea3b1af72a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 10 Sep 2024 20:17:00 -0500 Subject: [PATCH] fly speed changes --- src/engine/objects/AbstractCharacter.java | 9 ++------- src/engine/objects/PlayerCharacter.java | 3 ++- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/engine/objects/AbstractCharacter.java b/src/engine/objects/AbstractCharacter.java index 6017b2fd..9a99f9e1 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -499,14 +499,9 @@ public abstract class AbstractCharacter extends AbstractWorldObject { if (bonus != null && !bonus.getBool(ModType.NoMod, SourceType.Fly) && bonus.getBool(ModType.Fly, SourceType.None) && flyer.isAlive()) { canFly = true; - - float moveSpeedBuffValue = bonus.getFloatPercentAll(ModType.Speed, SourceType.Buff); - if(moveSpeedBuffValue > 0) - canFly = false; - float moveSpeedBuffValue2 = bonus.getFloatPercentAll(ModType.Speed, SourceType.BUFF); - if(moveSpeedBuffValue2 > 0) - canFly = false; } + + return canFly; } diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 54a0d102..41aa0964 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4896,7 +4896,8 @@ public class PlayerCharacter extends AbstractCharacter { } if(this.isFlying()){ - if (!AbstractCharacter.CanFly(this)) { + //if (!AbstractCharacter.CanFly(this)) { + if(this.effects.containsKey("MoveBuff")){ GroundPlayer(this); //ChatManager.chatSystemInfo(this, "You Cannot Fly While Having A MovementBuff"); }