From 2351a10e1ded49d56e413ff903bd5b9bca8f0301 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 22 Sep 2023 23:41:31 -0500 Subject: [PATCH] fix long cast animation predicate (other controllers may still need to be refactored) --- .../abstract_spell_casting_mob/AbstractSpellCastingMob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/redspace/ironsspellbooks/entity/mobs/abstract_spell_casting_mob/AbstractSpellCastingMob.java b/src/main/java/io/redspace/ironsspellbooks/entity/mobs/abstract_spell_casting_mob/AbstractSpellCastingMob.java index fcc329416..d99b27187 100644 --- a/src/main/java/io/redspace/ironsspellbooks/entity/mobs/abstract_spell_casting_mob/AbstractSpellCastingMob.java +++ b/src/main/java/io/redspace/ironsspellbooks/entity/mobs/abstract_spell_casting_mob/AbstractSpellCastingMob.java @@ -428,7 +428,7 @@ private PlayState instantCastingPredicate(AnimationEvent event) { } private PlayState longCastingPredicate(AnimationEvent event) { - if (cancelCastAnimation) { + if (cancelCastAnimation || !isCasting()) { return PlayState.STOP; }