diff --git a/src/main/java/com/minelittlepony/unicopia/spell/AbstractAttachableSpell.java b/src/main/java/com/minelittlepony/unicopia/spell/AbstractAttachableSpell.java index 454c7afe..353c8b2d 100644 --- a/src/main/java/com/minelittlepony/unicopia/spell/AbstractAttachableSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/spell/AbstractAttachableSpell.java @@ -36,7 +36,7 @@ public abstract class AbstractAttachableSpell extends AbstractSpell { setDirty(true); } - return targettedEntity != null; + return targettedEntityId != null; } @Nullable diff --git a/src/main/java/com/minelittlepony/unicopia/spell/SpellDarkness.java b/src/main/java/com/minelittlepony/unicopia/spell/SpellDarkness.java index 05cb8a12..599c689b 100644 --- a/src/main/java/com/minelittlepony/unicopia/spell/SpellDarkness.java +++ b/src/main/java/com/minelittlepony/unicopia/spell/SpellDarkness.java @@ -173,7 +173,7 @@ public class SpellDarkness extends AbstractAttachableSpell { public void render(ICaster source) { int radius = 7 + (source.getCurrentLevel() * 3); - boolean tamed = !searching; + boolean tamed = hasTarget(); int tint = tamed ? 0xFFFFFF : 0x000000;