fly speed changes
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user