Fixed spell casting

This commit is contained in:
ThaumRystra
2025-01-25 14:29:26 +02:00
parent 0b499b9c98
commit 4993506ec9
25 changed files with 628 additions and 168 deletions

View File

@@ -13,8 +13,10 @@ export default function saveInputChoices(action: EngineAction, userInput: InputP
}
// For every function in the given input provider
for (const key in userInput) {
let key: keyof InputProvider;
for (key in userInput) {
const oldFn = userInput[key];
if (!oldFn) continue;
// Make a new function that does the same thing, but saves the result to action._decisions
const newFn = async (...args) => {
const result = await oldFn(...args);