From 4b2fbf2dc03e377526e54500b62a4e39afe582e0 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 6 Mar 2025 07:27:28 -0600 Subject: [PATCH] shade and mino racial immunities --- src/engine/powers/ActionsBase.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/engine/powers/ActionsBase.java b/src/engine/powers/ActionsBase.java index 2b8b308a..bf7e8e80 100644 --- a/src/engine/powers/ActionsBase.java +++ b/src/engine/powers/ActionsBase.java @@ -9,6 +9,7 @@ package engine.powers; +import engine.Enum; import engine.Enum.ModType; import engine.Enum.SourceType; import engine.Enum.StackType; @@ -252,6 +253,14 @@ public class ActionsBase { } if(sourceType != null && (bonus.getBool(ModType.ImmuneTo,sourceType) || bonus.getBool(ModType.NoMod,sourceType))) return true; + if(ac.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)){ + PlayerCharacter pc = (PlayerCharacter)ac; + if(this.stackType.equals("Blindness") && pc.getRace().getName().contains("Shade")) + return true; + if(this.stackType.equals("Stun") && pc.getRace().getName().contains("Minotaur")) + return true; + } + if(pb.vampDrain() && bonus.getBool(ModType.BlockedPowerType, SourceType.VAMPDRAIN)) return true;