Changed task triggers to be stored differently so that attribute check and damage triggers don't overlap
This commit is contained in:
@@ -131,7 +131,7 @@ export async function applyAfterPropTasksForSomeChildren(
|
||||
export async function applyTriggers(
|
||||
action: EngineAction, prop, targetIds: string[], triggerPath: string, inputProvider: InputProvider
|
||||
) {
|
||||
const triggerIds = get(prop?.triggerIds, triggerPath);
|
||||
const triggerIds = get(prop, triggerPath);
|
||||
if (!triggerIds) return;
|
||||
for (const triggerId of triggerIds) {
|
||||
const trigger = await getSingleProperty(action.creatureId, triggerId);
|
||||
|
||||
Reference in New Issue
Block a user