From 4dd3b2fb2671285352d9963f5e1630f2a630b246 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 22 Jun 2024 18:29:44 +0100 Subject: [PATCH] Fixed error when applying the bubble spell to entities --- .../unicopia/ability/magic/spell/effect/BubbleSpell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/BubbleSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/BubbleSpell.java index f63f575c..1e93a979 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/BubbleSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/BubbleSpell.java @@ -88,7 +88,7 @@ public class BubbleSpell extends AbstractSpell implements TimedSpell, if (entity instanceof LivingEntity l) { MODIFIERS.forEach((attribute, modifier) -> { - if (l.getAttributes().hasAttribute(attribute)) { + if (!l.getAttributes().hasAttribute(attribute)) { l.getAttributeInstance(attribute).addPersistentModifier(modifier); } });