From 64b82b333f8c46620a7d508c2b64bb5a39e66826 Mon Sep 17 00:00:00 2001 From: Wexx <86693821+wexxlee@users.noreply.github.com> Date: Sun, 10 Mar 2024 13:37:59 -0700 Subject: [PATCH] raidboss: asura ActorSetPos update (#89) --- ui/raidboss/data/06-ew/trial/asura.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ui/raidboss/data/06-ew/trial/asura.ts b/ui/raidboss/data/06-ew/trial/asura.ts index 93b2b9b1e9..db2b789769 100644 --- a/ui/raidboss/data/06-ew/trial/asura.ts +++ b/ui/raidboss/data/06-ew/trial/asura.ts @@ -234,20 +234,18 @@ const triggerSet: TriggerSet = { }, { id: 'Asura Iconic Execution With Jump', - type: 'CombatantMemory', - // Filter to only enemy actors for performance - netRegex: { id: '4[0-9A-Fa-f]{7}', capture: true }, + type: 'ActorSetPos', + // The Asura Image doesn't have associated ActorSetPos lines except for this mechanic. + // Can't meaningfully filter regex as nearly all 271 lines are NPCs; but it's <100 in total. + netRegex: {}, condition: (data, matches) => data.iconicExecutionCount >= 3 && data.asuraImageId === matches.id && data.storedIconMech !== undefined, alertText: (data, matches, output) => { - if (matches.pairPosX === undefined || matches.pairPosY === undefined) - return; - const imageLoc = Directions.xyToCardinalDirOutput( - parseFloat(matches.pairPosX), - parseFloat(matches.pairPosY), + parseFloat(matches.x), + parseFloat(matches.y), centerX, centerY, );