fly speed changes
This commit is contained in:
1 parent
33dfe1389c
commit
277f8bfd69
2 files changed
+4
-8
No files matched your search
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user