{ "m": "d", "s": "2.18.2", "d": { "yOffset": 292.99993896484, "regionType": "dynamicgroup", "animation": { "main": { "type": "none", "duration_type": "seconds", "easeType": "none", "easeStrength": 3 }, "start": { "type": "none", "duration_type": "seconds", "easeType": "none", "easeStrength": 3 }, "finish": { "type": "none", "duration_type": "seconds", "easeType": "none", "easeStrength": 3 } }, "limit": 5, "selfPoint": "TOPLEFT", "arcLength": 360, "useLimit": false, "borderColor": [ 0, 0, 0, 1 ], "borderEdge": "Square Full White", "animate": false, "authorOptions": [], "actions": { "init": [], "start": [], "finish": [] }, "tocversion": 11305, "uid": "4hcvGTqvOx8", "scale": 1, "subRegions": [], "groupIcon": 136163, "rowSpace": 1, "config": [], "grow": "DOWN", "internalVersion": 33, "border": false, "anchorFrameType": "SCREEN", "gridWidth": 5, "anchorPoint": "CENTER", "frameStrata": 1, "borderOffset": 4, "constantFactor": "RADIUS", "id": "AQ40 Anubisath Helper", "sort": "none", "stagger": 0, "radius": 200, "gridType": "RD", "conditions": [], "xOffset": -533.00021362305, "borderSize": 2, "columnSpace": 1, "borderInset": 1, "load": { "class": { "multi": [] }, "size": { "multi": [] }, "spec": { "multi": [] } }, "align": "LEFT", "triggers": [ { "untrigger": [], "trigger": { "spellIds": [], "subeventPrefix": "SPELL", "unit": "player", "event": "Health", "debuffType": "HELPFUL", "subeventSuffix": "_CAST_START", "names": [], "type": "aura2" } } ], "space": 2, "rotation": 0, "borderBackdrop": "Blizzard Tooltip", "backdropColor": [ 1, 1, 1, 0.5 ], "url": "https://wago.io/4ao-BCj06/1", "version": 1, "semver": "1.0.0" }, "v": 1421, "c": [ { "yOffset": 0, "outline": "OUTLINE", "desaturate": false, "icon": true, "sparkTexture": "Interface\\CastingBar\\UI-CastingBar-Spark", "displayText_format_p_time_dynamic": false, "font": "Friz Quadrata TT", "useAdjustededMin": false, "animation": { "main": { "type": "none", "duration_type": "seconds", "easeType": "none", "easeStrength": 3 }, "start": { "type": "none", "duration_type": "seconds", "easeType": "none", "easeStrength": 3 }, "finish": { "type": "none", "duration_type": "seconds", "easeType": "none", "easeStrength": 3 } }, "orientation": "HORIZONTAL", "uid": "kr9RZWqE(bH", "sparkHidden": "NEVER", "inverse": false, "width": 200, "displayText_format_p_time_precision": 1, "texture": "Blizzard", "anchorFrameType": "SCREEN", "subRegions": [], "selfPoint": "BOTTOM", "id": "AQ40 Anubisath Helper Text", "xOffset": 0, "justify": "LEFT", "customTextUpdate": "event", "sparkColor": [ 1, 1, 1, 1 ], "displayText_format_n_format": "none", "authorOptions": [], "regionType": "text", "anchorPoint": "CENTER", "actions": { "init": { "custom": "-- Config\naura_env.buffPriorities = {\n [2147] = 1, --Mending\n [13022] = 2, --Fire and Arcane Reflect\n [19595] = 3, --Shaodw and Frost Reflect\n [21737] = 4, --Knock Away\n [25777] = 5, --Thorns\n [9347] = 6, --Mortal Strike \n [2834] = 7, --Thunderclap \n [812] = 8, --Mana Burn\n [2148] = 9, --Shadow Storm\n}\n\n\n\n-- Helpers\nlocal RaidIconMaskToIndex = {\n [COMBATLOG_OBJECT_RAIDTARGET1] = 1,\n [COMBATLOG_OBJECT_RAIDTARGET2] = 2,\n [COMBATLOG_OBJECT_RAIDTARGET3] = 3,\n [COMBATLOG_OBJECT_RAIDTARGET4] = 4,\n [COMBATLOG_OBJECT_RAIDTARGET5] = 5,\n [COMBATLOG_OBJECT_RAIDTARGET6] = 6,\n [COMBATLOG_OBJECT_RAIDTARGET7] = 7,\n [COMBATLOG_OBJECT_RAIDTARGET8] = 8\n}\n\n\nlocal function addState(allStates, guid, mark, auraSpellId, auraName)\n local priority = (auraSpellId and aura_env.buffPriorities[auraSpellId]) or math.huge\n allStates[guid] = {\n show = true,\n changed = true,\n name = ICON_LIST[mark] .. \":0|t \" .. (auraName or \"?\"),\n index = priority\n }\nend\n\n\n\n-- Events\naura_env.eventHandlers = {}\n\nfunction aura_env.eventHandlers.PLAYER_REGEN_ENABLED(allStates)\n for _, state in pairs(allStates) do\n state.show = false\n state.changed = true\n end\n return true\nend\n\n\nfunction aura_env.eventHandlers.UPDATE_MOUSEOVER_UNIT(allStates)\n local guid = UnitGUID(\"mouseover\")\n if guid == nil then\n return false\n end\n \n local _, _, _, _, _, npcId = strsplit(\"-\", guid)\n if npcId ~= \"15264\" then -- 15264 = Anubisath Sentinel\n return false\n end\n \n local mark = GetRaidTargetIndex(\"mouseover\")\n if mark == nil then\n return false\n end\n \n local auraName, _, _, _, _, _, _, _, _, auraSpellId = UnitAura(\"mouseover\", 1)\n addState(allStates, guid, mark, auraSpellId, auraName)\n return true\nend\n\n\nfunction aura_env.eventHandlers.COMBAT_LOG_EVENT_UNFILTERED(allStates)\n local _, event, _, _, _, _, _, guid, _, _, raidFlags, spellId, _, _, missType = CombatLogGetCurrentEventInfo()\n if event ~= \"SPELL_MISSED\" then\n return false\n end\n if spellId ~= 2855 then -- 2855 = Detect Magic\n return false\n end\n if missType ~= \"REFLECT\" then\n return false\n end\n local mark = RaidIconMaskToIndex[bit.band(raidFlags, COMBATLOG_OBJECT_RAIDTARGET_MASK)]\n addState(allStates, guid, mark, 13022, \"Fire and Arcane Reflect\")\n return true\nend\n\n\n\n", "do_custom": true }, "start": [], "finish": [] }, "icon_side": "LEFT", "height": 20, "config": [], "shadowXOffset": 1, "wordWrap": "WordWrap", "sparkRotation": 0, "spark": false, "sparkBlendMode": "ADD", "color": [ 1, 1, 1, 1 ], "displayText_format_p_format": "timed", "sparkRotationMode": "AUTO", "backgroundColor": [ 0, 0, 0, 0.5 ], "barColor": [ 1, 0, 0, 1 ], "auto": true, "alpha": 1, "useTooltip": true, "shadowColor": [ 0, 0, 0, 1 ], "shadowYOffset": -1, "zoom": 0.25, "useAdjustededMax": false, "frameStrata": 1, "displayText": "%n", "internalVersion": 33, "conditions": [], "icon_color": [ 1, 1, 1, 1 ], "sparkOffsetY": 0, "fixedWidth": 200, "sparkHeight": 30, "automaticWidth": "Auto", "load": { "class": { "multi": [] }, "spec": { "multi": [] }, "size": { "multi": [] }, "use_zone": false }, "triggers": { "1": { "untrigger": [], "trigger": { "unit": "player", "debuffType": "HELPFUL", "spellIds": [], "names": [], "custom": "function(allStates, event, ...)\n return aura_env.eventHandlers[event](allStates, ...)\nend", "subeventSuffix": "_CAST_START", "events": "PLAYER_REGEN_ENABLED UPDATE_MOUSEOVER_UNIT COMBAT_LOG_EVENT_UNFILTERED:SPELL_MISSED", "event": "Health", "type": "custom", "custom_type": "stateupdate", "subeventPrefix": "SPELL", "check": "event" } }, "activeTriggerMode": -10 }, "tocversion": 11305, "sparkWidth": 10, "sparkOffsetX": 0, "fontSize": 16, "url": "https://wago.io/4ao-BCj06/1", "version": 1, "semver": "1.0.0" } ], "wagoID": "4ao-BCj06" }