thoth always either evaluates or errors

This commit is contained in:
yrsegal@gmail.com 2022-06-14 20:51:51 -04:00
parent 72a1f28902
commit bf5c908273

View file

@ -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,