forked from MagicBane/Server
no move buff while flying
This commit is contained in:
@@ -4828,10 +4828,13 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(this.isFlying()){
|
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);
|
GroundPlayer(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Logger.error(e);
|
Logger.error(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user