From e07fe59a12a7c024e483417b14b65a79d5f2c30b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 5 Mar 2025 20:56:10 -0600 Subject: [PATCH] sourcetype failed lookups --- src/engine/powers/ActionsBase.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/powers/ActionsBase.java b/src/engine/powers/ActionsBase.java index 26779720..2b8b308a 100644 --- a/src/engine/powers/ActionsBase.java +++ b/src/engine/powers/ActionsBase.java @@ -244,8 +244,12 @@ public class ActionsBase { if (bonus == null) return false; - SourceType sourceType = SourceType.GetSourceType(this.stackType); + SourceType sourceType = null; + try { + sourceType = SourceType.GetSourceType(this.stackType); + }catch(Exception ignored){ + } if(sourceType != null && (bonus.getBool(ModType.ImmuneTo,sourceType) || bonus.getBool(ModType.NoMod,sourceType))) return true;