Fixed function signatures of buff removers and folders that could break triggers
This commit is contained in:
@@ -6,9 +6,10 @@ import { getPropertiesOfType, getPropertyAncestors } from '/imports/api/engine/l
|
|||||||
import getEffectivePropTags from '/imports/api/engine/computation/utility/getEffectivePropTags';
|
import getEffectivePropTags from '/imports/api/engine/computation/utility/getEffectivePropTags';
|
||||||
import { applyDefaultAfterPropTasks } from '/imports/api/engine/action/functions/applyTaskGroups';
|
import { applyDefaultAfterPropTasks } from '/imports/api/engine/action/functions/applyTaskGroups';
|
||||||
import { EngineAction } from '/imports/api/engine/action/EngineActions';
|
import { EngineAction } from '/imports/api/engine/action/EngineActions';
|
||||||
|
import InputProvider from '/imports/api/engine/action/functions/userInput/InputProvider';
|
||||||
|
|
||||||
export default function applyBuffRemoverProperty(
|
export default async function applyBuffRemoverProperty(
|
||||||
task: PropTask, action: EngineAction, result: TaskResult, userInput
|
task: PropTask, action: EngineAction, result: TaskResult, userInput: InputProvider
|
||||||
) {
|
) {
|
||||||
const prop = task.prop;
|
const prop = task.prop;
|
||||||
|
|
||||||
@@ -55,7 +56,7 @@ export default function applyBuffRemoverProperty(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
applyDefaultAfterPropTasks(action, prop, task.targetIds, userInput);
|
return applyDefaultAfterPropTasks(action, prop, task.targetIds, userInput);
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeBuff(buff: any, prop, result: TaskResult) {
|
function removeBuff(buff: any, prop, result: TaskResult) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { PropTask } from '/imports/api/engine/action/tasks/Task';
|
|||||||
|
|
||||||
|
|
||||||
export default async function applyFolderProperty(
|
export default async function applyFolderProperty(
|
||||||
task: PropTask, action: EngineAction, userInput
|
task: PropTask, action: EngineAction, result, userInput
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const prop = task.prop;
|
const prop = task.prop;
|
||||||
return applyDefaultAfterPropTasks(action, prop, task.targetIds, userInput);
|
return applyDefaultAfterPropTasks(action, prop, task.targetIds, userInput);
|
||||||
|
|||||||
Reference in New Issue
Block a user