fly speed changes

This commit is contained in:
2024-09-10 20:17:00 -05:00
parent 33dfe1389c
commit 277f8bfd69
2 changed files with 4 additions and 8 deletions
+2 -7
View File
@@ -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;
}