Browse Source

no move buff while flying

lakebane-strongholds
FatBoy-DOTC 4 months ago
parent
commit
67e55ab0a0
  1. 5
      src/engine/objects/PlayerCharacter.java

5
src/engine/objects/PlayerCharacter.java

@ -4828,10 +4828,13 @@ public class PlayerCharacter extends AbstractCharacter { @@ -4828,10 +4828,13 @@ public class PlayerCharacter extends AbstractCharacter {
}
if(this.isFlying()){
if(this.getBonuses() != null && this.getBonuses().getFloat(ModType.Speed,SourceType.BUFF) > 0){
if(this.getBonuses() != null){
float speedMod = this.getBonuses().getFloatPercentPositive(ModType.Speed,SourceType.None);
if(speedMod > 0) {
GroundPlayer(this);
}
}
}
} catch (Exception e) {
Logger.error(e);

Loading…
Cancel
Save