Browse Source

move buff grounding

lakebane-strongholds
FatBoy-DOTC 2 months ago
parent
commit
33dfe1389c
  1. 44
      src/engine/objects/AbstractCharacter.java

44
src/engine/objects/AbstractCharacter.java

@ -497,46 +497,16 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
boolean canFly = false; boolean canFly = false;
PlayerBonuses bonus = flyer.getBonuses(); PlayerBonuses bonus = flyer.getBonuses();
if (bonus != null && !bonus.getBool(ModType.NoMod, SourceType.Fly) && bonus.getBool(ModType.Fly, SourceType.None) && flyer.isAlive()) if (bonus != null && !bonus.getBool(ModType.NoMod, SourceType.Fly) && bonus.getBool(ModType.Fly, SourceType.None) && flyer.isAlive()) {
canFly = true; canFly = true;
float moveSpeedBuffValue = bonus.getFloatPercentAll(ModType.Speed, SourceType.Buff);
for(Effect eff : flyer.effects.values()){ if(moveSpeedBuffValue > 0)
switch(eff.getEffectsBase().getIDString()){ canFly = false;
case "CSR-HASTE": float moveSpeedBuffValue2 = bonus.getFloatPercentAll(ModType.Speed, SourceType.BUFF);
case "SPRINT": if(moveSpeedBuffValue2 > 0)
case "FEATURECHARACTER": canFly = false;
case "MOVE-B-50%":
case "RNG-049A":
case "TRAVEL-A":
case "BHN-001A":
case "WAR-100A":
case "HNT-037A":
case "RNG-037A":
case "SNT-010A":
case "MOVE-B-25%":
case "PRS-031A":
case "RNG-049D":
case "MOVE-B-15%":
case "POT-006A":
case "WRT-001C":
case "WWF-001D":
case "COM-001A":
case "HNT-100A":
case "MOVE-B-10%":
case "RNG-033A":
case "SCT-004A":
case "THF-003A":
case "MOVE-B-7%":
case "MOVE-B-5%":
case "RNG-100A":
case "WBR-001B":
case "MOVE-B-3%":
return false;
}
} }
return canFly; return canFly;
} }

Loading…
Cancel
Save