From 2016b7dd84845d5947756bc9d38209a3226ef890 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 19 Sep 2024 21:24:28 +0100 Subject: [PATCH] Fixed spells not executing their on destroy handlers --- .../minelittlepony/unicopia/ability/magic/MultiSpellSlot.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/MultiSpellSlot.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/MultiSpellSlot.java index e38184b7..5a1d9788 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/MultiSpellSlot.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/MultiSpellSlot.java @@ -114,8 +114,10 @@ class MultiSpellSlot implements SpellSlots, NbtSerialisable { } else { Spell s = spell.get(); if (s != null) { - s.setDead(); s.tickDying(owner); + if (s.isDead()) { + s.destroy(owner); + } } } }