no move buff while flying

This commit is contained in:
2024-08-30 19:00:50 -05:00
parent 227549bf22
commit 67e55ab0a0
+5 -2
View File
@@ -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);
}
}
}