From bf5c908273ae9f5c33b039e8ac9ba1ec524a5a41 Mon Sep 17 00:00:00 2001 From: "yrsegal@gmail.com" Date: Tue, 14 Jun 2022 20:51:51 -0400 Subject: [PATCH] thoth always either evaluates or errors --- .../at/petrak/hexcasting/api/spell/casting/CastingHarness.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Common/src/main/java/at/petrak/hexcasting/api/spell/casting/CastingHarness.kt b/Common/src/main/java/at/petrak/hexcasting/api/spell/casting/CastingHarness.kt index 35e42293..1861a03d 100644 --- a/Common/src/main/java/at/petrak/hexcasting/api/spell/casting/CastingHarness.kt +++ b/Common/src/main/java/at/petrak/hexcasting/api/spell/casting/CastingHarness.kt @@ -71,6 +71,10 @@ class CastingHarness private constructor( info.earlyExit = info.earlyExit || !lastResolutionType.success } + if (continuation is SpellContinuation.NotDone) { + lastResolutionType = if (lastResolutionType.success) ResolvedPatternType.EVALUATED else ResolvedPatternType.ERRORED + } + return ControllerInfo( info.playSound, this.stack.isEmpty() && this.parenCount == 0 && !this.escapeNext,