From feef6263b4c1b745394036858ea1ab54c5fa8257 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 27 Jun 2024 20:41:43 -0500 Subject: [PATCH] cleanup --- src/engine/powers/ActionsBase.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/engine/powers/ActionsBase.java b/src/engine/powers/ActionsBase.java index a2c505db..bcf1c359 100644 --- a/src/engine/powers/ActionsBase.java +++ b/src/engine/powers/ActionsBase.java @@ -251,14 +251,14 @@ public class ActionsBase { if(vampDrain) return bonus.getBool(ModType.BlockedPowerType, SourceType.VAMPDRAIN); - if (this.stackType.equals("Flight") && bonus.getBool(ModType.NoMod, SourceType.Fly)) { + if ((this.stackType.equals("Flight") && bonus.getBool(ModType.NoMod, SourceType.Fly)) || + (this.stackType.equals("Track") && bonus.getBool(ModType.CannotTrack, SourceType.None))) { return true; - }else if (this.stackType.equals("Track") && bonus.getBool(ModType.CannotTrack, SourceType.None)) { - return true; - }else { - mbEnums.DamageType damageType = mbEnums.DamageType.getDamageType(this.stackType.toUpperCase()); - return pcTarget.getResists().immuneTo(damageType); } + + mbEnums.DamageType damageType = mbEnums.DamageType.getDamageType(this.stackType.toUpperCase()); + return pcTarget.getResists().immuneTo(damageType); + } return false; }