From 013b69405af230281aa382d20006444105c2936a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 10 Sep 2024 17:46:35 -0500 Subject: [PATCH] move buff grounding --- src/engine/objects/AbstractCharacter.java | 37 +++++++++++++++++++---- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/src/engine/objects/AbstractCharacter.java b/src/engine/objects/AbstractCharacter.java index f69c5d6d..6479fddb 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -502,15 +502,40 @@ public abstract class AbstractCharacter extends AbstractWorldObject { for(Effect eff : flyer.effects.values()){ - for(AbstractEffectModifier mod : eff.getEffectModifiers()){ - if(mod.modType.equals(ModType.Speed) && mod.getPercentMod() > 0){ + switch(eff.getEffectsBase().getIDString()){ + case "CSR-HASTE": + case "SPRINT": + case "FEATURECHARACTER": + 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; - } } } - if(bonus != null && bonus.getFloat(ModType.Speed,SourceType.BUFF) > 0){ - return false; - } return canFly;