{ "m": "d", "s": "3.0.5", "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, "uid": "4hcvGTqvOx8", "arcLength": 360, "useLimit": false, "borderColor": [ 0, 0, 0, 1 ], "borderEdge": "Square Full White", "animate": false, "subRegions": [], "selfPoint": "TOPLEFT", "actions": { "init": [], "start": [], "finish": [] }, "gridType": "RD", "config": [], "xOffset": -533.00021362305, "scale": 1, "ignoreOptionsEventErrors": true, "groupIcon": 136163, "borderInset": 1, "radius": 200, "grow": "DOWN", "internalVersion": 38, "border": false, "anchorFrameType": "SCREEN", "frameStrata": 1, "borderBackdrop": "Blizzard Tooltip", "gridWidth": 5, "borderOffset": 4, "constantFactor": "RADIUS", "id": "AQ40 Anubisath Helper", "sort": "none", "stagger": 0, "tocversion": 11305, "rowSpace": 1, "conditions": [], "authorOptions": [], "anchorPoint": "CENTER", "fullCircle": true, "backdropColor": [ 1, 1, 1, 0.5 ], "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" } } ], "columnSpace": 1, "borderSize": 2, "space": 2, "rotation": 0 }, "v": 1421, "c": [ { "icon_side": "LEFT", "outline": "OUTLINE", "desaturate": false, "shadowYOffset": -1, "regionType": "text", "texture": "Blizzard", "tocversion": 11305, "shadowXOffset": 1, "width": 200, "orientation": "HORIZONTAL", "sparkBlendMode": "ADD", "sparkHidden": "NEVER", "internalVersion": 38, "barColor": [ 1, 0, 0, 1 ], "useTooltip": true, "shadowColor": [ 0, 0, 0, 1 ], "auto": true, "icon": true, "conditions": [], "inverse": false, "automaticWidth": "Auto", "triggers": { "1": { "untrigger": [], "trigger": { "unit": "player", "debuffType": "HELPFUL", "spellIds": [], "custom_type": "stateupdate", "custom": "function(allStates, event, ...)\n return aura_env.eventHandlers[event](allStates, ...)\nend", "type": "custom", "events": "PLAYER_REGEN_ENABLED UPDATE_MOUSEOVER_UNIT COMBAT_LOG_EVENT_UNFILTERED:SPELL_MISSED", "event": "Health", "names": [], "subeventSuffix": "_CAST_START", "subeventPrefix": "SPELL", "check": "event" } }, "activeTriggerMode": -10 }, "sparkColor": [ 1, 1, 1, 1 ], "fontSize": 16, "yOffset": 0, "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 } }, "selfPoint": "BOTTOM", "xOffset": 0, "subRegions": [], "actions": { "init": { "custom": "-- Config\naura_env.buffPriorities = {\n [2147] = 1, --Mending\n [19595] = 2, --Shaodw and Frost Reflect\n [13022] = 3, --Fire and Arcane Reflect\n [21737] = 4, --Knock Away\n [9347] = 5, --Mortal Strike\n [2834] = 6, --Thunderclap \n [25777] = 7, --Thorns\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 if allStates[guid] ~= nil and auraSpellId == nil then -- dont overwrite detected buffs with \"?\"\n return false\n end\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, _, spellName, _, missType = CombatLogGetCurrentEventInfo()\n if event ~= \"SPELL_MISSED\" then\n return false\n end\n if spellName ~= \"Detect Magic\" then\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": [] }, "config": [], "sparkOffsetY": 0, "wordWrap": "WordWrap", "sparkOffsetX": 0, "spark": false, "useAdjustededMax": false, "customTextUpdate": "event", "displayText_format_n_format": "none", "uid": "kr9RZWqE(bH", "backgroundColor": [ 0, 0, 0, 0.5 ], "load": { "spec": { "multi": [] }, "size": { "multi": [] }, "class": { "multi": [] }, "zone": "Ahn'Qiraj", "use_zone": true }, "sparkTexture": "Interface\\CastingBar\\UI-CastingBar-Spark", "anchorPoint": "CENTER", "justify": "LEFT", "fixedWidth": 200, "displayText_format_p_format": "timed", "zoom": 0.25, "displayText_format_p_time_dynamic": false, "frameStrata": 1, "displayText": "%n", "alpha": 1, "sparkRotationMode": "AUTO", "icon_color": [ 1, 1, 1, 1 ], "authorOptions": [], "color": [ 1, 1, 1, 1 ], "sparkHeight": 30, "sparkRotation": 0, "height": 20, "displayText_format_p_time_precision": 1, "ignoreOptionsEventErrors": true, "sparkWidth": 10, "id": "AQ40 Anubisath Helper Text", "anchorFrameType": "SCREEN" } ] }