no move buff while flying

This commit is contained in:
2024-08-30 19:27:19 -05:00
parent 67e55ab0a0
commit 5be9033c40
3 changed files with 20 additions and 8 deletions
+2 -5
View File
@@ -4828,11 +4828,8 @@ public class PlayerCharacter extends AbstractCharacter {
}
if(this.isFlying()){
if(this.getBonuses() != null){
float speedMod = this.getBonuses().getFloatPercentPositive(ModType.Speed,SourceType.None);
if(speedMod > 0) {
GroundPlayer(this);
}
if (!AbstractCharacter.CanFly(this)) {
GroundPlayer(this);
}
}