From 871edea0d7ea1211a4f5217b1cc280cc359b1fed Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 6 May 2020 15:56:33 +0200 Subject: [PATCH] Don't trap the thrower --- .../unicopia/magic/spell/ChangelingTrapSpell.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/magic/spell/ChangelingTrapSpell.java b/src/main/java/com/minelittlepony/unicopia/magic/spell/ChangelingTrapSpell.java index dd2cdd17..53274254 100644 --- a/src/main/java/com/minelittlepony/unicopia/magic/spell/ChangelingTrapSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/magic/spell/ChangelingTrapSpell.java @@ -186,6 +186,8 @@ public class ChangelingTrapSpell extends AbstractSpell implements TossedMagicEff } else { existing.enforce(e); } + + e.spawnParticles(ParticleTypes.DRIPPING_LAVA, 20); } protected boolean canAffect(Entity e) { @@ -199,6 +201,7 @@ public class ChangelingTrapSpell extends AbstractSpell implements TossedMagicEff if (caster.isLocal()) { caster.findAllEntitiesInRange(5) .filter(this::canAffect) + .filter(e -> e != caster.getOwner()) .map(e -> CasterUtils.toCaster(e)) .filter(Optional::isPresent) .map(Optional::get)