From fb3a642acd0ef87dfd53ecb8aacef79b634cfd11 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 29 Dec 2021 21:24:02 +0200 Subject: [PATCH] Prevent the death animation from playing when recalling entities spawned by the necromancy spell --- .../unicopia/ability/magic/spell/effect/NecromancySpell.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/NecromancySpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/NecromancySpell.java index 5d211735..cbd349eb 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/NecromancySpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/NecromancySpell.java @@ -100,9 +100,8 @@ public class NecromancySpell extends AbstractAreaEffectSpell { if (master != null) { master.applyDamageEffects(master, e); } - if (caster.getWorld().random.nextInt(2000) != 0) { - e.setHealth(0); - } + e.world.sendEntityStatus(e, (byte)60); + e.discard(); }); }); }