From 690613b9501a2ffa4e6889a5bedf3029fa9da2fc Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 5 Mar 2021 20:53:17 +0200 Subject: [PATCH] Fixed siphoning spell not dying properly/duplicating its particle each time --- .../ability/magic/spell/SiphoningSpell.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/SiphoningSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/SiphoningSpell.java index 79856668..4b79f765 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/SiphoningSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/SiphoningSpell.java @@ -47,19 +47,19 @@ public class SiphoningSpell extends AbstractPlacedSpell { source.addParticle(direction == 1 ? ParticleTypes.HEART : ParticleTypes.ANGRY_VILLAGER, pos, velocity); } }); - } - - if (source.getWorld().getTime() % 10 != 0) { - return true; - } - - if (isFriendlyTogether(source)) { - distributeHealth(source); } else { - collectHealth(source); - } - return true; + if (source.getWorld().getTime() % 10 != 0) { + return true; + } + + if (isFriendlyTogether(source)) { + distributeHealth(source); + } else { + collectHealth(source); + } + } + return !isDead(); } private Stream getTargets(Caster source) {