{ "c": [ { "actions": { "finish": [], "init": { "custom": "-- config\naura_env.blacklist = {}\nfor _, name in ipairs({strsplit(\"\\n\", aura_env.config[\"blacklist\"])}) do\n aura_env.blacklist[name] = true\nend\naura_env.regenBuffs = {strsplit(\"\\n\", aura_env.config[\"regenBuffs\"])}\n\naura_env.healerClasses = { -- the classic API doesn't support role-identification\n [\"DRUID\"] = true,\n [\"PRIEST\"] = true,\n [\"PALADIN\"] = true\n}\n\n\n-- event handlers\n-- GROUP_ROSTER_UPDATE UNIT_POWER_UPDATE UNIT_AURA\naura_env.eventHandlers = {}\n\naura_env.eventHandlers.GROUP_ROSTER_UPDATE = function(allStates)\n -- clear out all current clones, in case a player left the group\n for _, state in pairs(allStates) do\n state.show = false;\n state.changed = true;\n end\n -- add players from group\n for unit in WA_IterateGroupMembers() do\n local unitName = UnitName(unit)\n local unitClass, unitClassId = UnitClassBase(unit)\n if aura_env.healerClasses[unitClass] and not aura_env.blacklist[unitName] then\n local subGroup = IsInRaid() and select(3, GetRaidRosterInfo(UnitInRaid(unit))) or \"\"\n allStates[unit] = {\n show = true,\n changed = true,\n name = \"|cffcccccc\" .. subGroup .. \"|r \" .. unitName .. (unitName == \"Grep\" and \" |cffff0000<3|r\" or \"\"),\n index = unitClass .. unitName,\n progressType = \"static\",\n value = 0,\n total = 1,\n icon = 0,\n barColor = {RAID_CLASS_COLORS[unitClass]:GetRGB()},\n }\n aura_env.eventHandlers.UNIT_POWER_UPDATE(allStates, unit)\n end\n end\n return true\nend\n\n\naura_env.eventHandlers.UNIT_POWER_UPDATE = function(allStates, unit, ...)\n local unitState = allStates[unit]\n if not unitState then\n return false -- not tracking unit\n end\n unitState.changed = true\n unitState.value = UnitPower(unit, Enum.PowerType.Mana, false)\n unitState.total = UnitPowerMax(unit, Enum.PowerType.Mana)\n unitState.manaPercent = Round((unitState.value / unitState.total) * 100)\n return true\nend\n\n\naura_env.eventHandlers.UNIT_AURA = function(allStates, unit)\n local unitState = allStates[unit]\n if not unitState then\n return false -- not tracking unit\n end\n unitState.changed = true\n for _, regenBuff in ipairs(aura_env.regenBuffs) do\n local buffName, shouldGlow = strsplit(\"+\", regenBuff)\n local buff = {WA_GetUnitBuff(unit, buffName)}\n if #buff ~= 0 then\n unitState.icon = GetSpellTexture(buff[10])\n unitState.glow = shouldGlow ~= nil\n unitState.buffExpirationTime = buff[6]\n return true\n end\n end\n unitState.icon = 0\n unitState.glow = false\n unitState.buffExpirationTime = nil\n return true\nend", "do_custom": true }, "start": { "do_custom": false } }, "alpha": 1, "anchorFrameType": "SCREEN", "anchorPoint": "CENTER", "animation": { "finish": { "duration_type": "seconds", "easeStrength": 3, "easeType": "none", "type": "none" }, "main": { "alpha": 0, "colorA": 1, "colorB": 1, "colorFunc": "function(progress, r1, g1, b1, a1, r2, g2, b2, a2)\n return unpack(aura_env.state.barColor)\nend", "colorG": 1, "colorR": 1, "colorType": "custom", "duration_type": "seconds", "easeStrength": 3, "easeType": "none", "rotate": 0, "scalex": 1, "scaley": 1, "type": "custom", "use_color": true, "x": 0, "y": 0 }, "start": { "alpha": 0, "colorA": 1, "colorB": 0.15294117647059, "colorFunc": " function(progress, r1, g1, b1, a1, r2, g2, b2, a2)\n return WeakAuras.GetHSVTransition(progress, r1, g1, b1, a1, r2, g2, b2, a2)\n end\n ", "colorG": 0, "colorR": 1, "colorType": "straightHSV", "duration": "", "duration_type": "seconds", "easeStrength": 3, "easeType": "none", "rotate": 0, "scalex": 1, "scaley": 1, "type": "none", "use_color": false, "x": 0, "y": 0 } }, "authorOptions": [ { "default": "", "desc": "One per line", "key": "blacklist", "length": 10, "multiline": true, "name": "Blacklist", "type": "input", "useDesc": true, "useLength": false, "width": 2 }, { "default": "", "desc": "One per line", "key": "regenBuffs", "length": 10, "multiline": true, "name": "Regeneration Buffs", "type": "input", "useDesc": true, "useLength": false, "width": 2 } ], "auto": true, "backgroundColor": [ 0, 0, 0, 0.5 ], "barColor": [ 1, 1, 1, 1 ], "conditions": [ { "changes": [ { "property": "alpha", "value": 0.6 } ], "check": { "op": ">=", "trigger": 1, "value": "100", "variable": "manaPercent" } }, { "changes": [ { "property": "backgroundColor", "value": [ 0.7843137254902, 0, 0, 1 ] } ], "check": { "op": "<=", "trigger": 1, "value": "0", "variable": "value" } }, { "changes": [ { "property": "sub.5.glow", "value": true } ], "check": { "trigger": 1, "value": 1, "variable": "glow" } } ], "config": { "blacklist": "Borahk\nEzeriel\nKrigerkyling\nLoodt\nMagad\nRalfe\nZyaler\nSaxec", "regenBuffs": "Innervate+\nAura of the Blue Dragon\nDrink\nDim Sum\nFood" }, "customText": "function()\n local expirationTime = aura_env.state.buffExpirationTime\n if expirationTime ~= 0 and expirationTime ~= nil then\n return Round(expirationTime - GetTime())\n end\n return nil\nend", "customTextUpdate": "update", "desaturate": false, "displayIcon": "", "frameStrata": 1, "height": 20, "icon": true, "icon_color": [ 1, 1, 1, 1 ], "icon_side": "LEFT", "id": "Raid Healer Manabar", "ignoreOptionsEventErrors": true, "internalVersion": 38, "inverse": false, "load": { "class": { "multi": [] }, "ingroup": { "multi": { "group": true, "raid": true }, "single": "group" }, "size": { "multi": [] }, "spec": { "multi": [] }, "use_ingroup": false, "use_never": false }, "orientation": "HORIZONTAL", "regionType": "aurabar", "selfPoint": "CENTER", "semver": "1.0.0", "spark": false, "sparkBlendMode": "ADD", "sparkColor": [ 1, 1, 1, 1 ], "sparkHeight": 30, "sparkHidden": "NEVER", "sparkOffsetX": 0, "sparkOffsetY": 0, "sparkRotation": 0, "sparkRotationMode": "AUTO", "sparkTexture": "Interface\\CastingBar\\UI-CastingBar-Spark", "sparkWidth": 10, "subRegions": [ { "type": "aurabar_bar" }, { "anchorXOffset": 0, "anchorYOffset": 0, "rotateText": "NONE", "text_anchorPoint": "ICON_CENTER", "text_automaticWidth": "Auto", "text_color": [ 1, 1, 1, 1 ], "text_fixedWidth": 64, "text_font": "Friz Quadrata TT", "text_fontSize": 12, "text_fontType": "OUTLINE", "text_justify": "CENTER", "text_selfPoint": "CENTER", "text_shadowColor": [ 0, 0, 0, 1 ], "text_shadowXOffset": 1, "text_shadowYOffset": -1, "text_text": "%c", "text_visible": true, "text_wordWrap": "WordWrap", "type": "subtext" }, { "anchorXOffset": 0, "anchorYOffset": 0, "rotateText": "NONE", "text_anchorPoint": "INNER_LEFT", "text_automaticWidth": "Auto", "text_color": [ 1, 1, 1, 1 ], "text_fixedWidth": 64, "text_font": "Friz Quadrata TT", "text_fontSize": 12, "text_fontType": "None", "text_justify": "CENTER", "text_selfPoint": "AUTO", "text_shadowColor": [ 0, 0, 0, 1 ], "text_shadowXOffset": 1, "text_shadowYOffset": -1, "text_text": "%n", "text_text_format_n_format": "none", "text_visible": true, "text_wordWrap": "WordWrap", "type": "subtext" }, { "anchorXOffset": 0, "anchorYOffset": 0, "rotateText": "NONE", "text_anchorPoint": "INNER_RIGHT", "text_automaticWidth": "Auto", "text_color": [ 1, 1, 1, 1 ], "text_fixedWidth": 64, "text_font": "Friz Quadrata TT", "text_fontSize": 12, "text_fontType": "None", "text_justify": "CENTER", "text_selfPoint": "AUTO", "text_shadowColor": [ 0, 0, 0, 1 ], "text_shadowXOffset": 1, "text_shadowYOffset": -1, "text_text": "%manaPercent%%", "text_text_format_manaPercent_format": "none", "text_visible": true, "text_wordWrap": "WordWrap", "type": "subtext" }, { "glow": false, "glowBorder": false, "glowColor": [ 1, 1, 1, 1 ], "glowFrequency": 0.25, "glowLength": 10, "glowLines": 15, "glowScale": 1, "glowThickness": 1, "glowType": "Pixel", "glowXOffset": 0, "glowYOffset": 0, "glow_anchor": "bg", "type": "subglow", "useGlowColor": false } ], "texture": "Details Flat", "tocversion": 11305, "triggers": { "1": { "trigger": { "check": "event", "custom": "function(allStates, event, ...)\n return aura_env.eventHandlers[event](allStates, ...)\nend", "customVariables": "{\n value = true,\n total = true,\n \n glow = \"bool\",\n manaPercent = \"number\"\n}\n\n\n", "custom_hide": "timed", "custom_type": "stateupdate", "debuffType": "HELPFUL", "event": "Health", "events": "GROUP_ROSTER_UPDATE UNIT_POWER_UPDATE UNIT_AURA", "names": [], "spellIds": [], "subeventPrefix": "SPELL", "subeventSuffix": "_CAST_START", "type": "custom", "unit": "player" }, "untrigger": [] }, "activeTriggerMode": -10, "disjunctive": "any" }, "uid": "ESDF3HQnfL9", "url": "https://wago.io/7Z_gHsD75/1", "useAdjustededMax": false, "useAdjustededMin": false, "version": 1, "width": 150, "xOffset": 0, "yOffset": 0, "zoom": 0.3 } ], "d": { "actions": { "finish": [], "init": [], "start": [] }, "align": "CENTER", "anchorFrameType": "SCREEN", "anchorPoint": "CENTER", "animate": true, "animation": { "finish": { "duration_type": "seconds", "easeStrength": 3, "easeType": "none", "type": "none" }, "main": { "duration_type": "seconds", "easeStrength": 3, "easeType": "none", "type": "none" }, "start": { "duration_type": "seconds", "easeStrength": 3, "easeType": "none", "type": "none" } }, "arcLength": 360, "authorOptions": [], "backdropColor": [ 1, 1, 1, 0.5 ], "border": false, "borderBackdrop": "Blizzard Tooltip", "borderColor": [ 0, 0, 0, 1 ], "borderEdge": "Square Full White", "borderInset": 1, "borderOffset": 4, "borderSize": 2, "columnSpace": 1, "conditions": [], "config": [], "constantFactor": "RADIUS", "frameStrata": 1, "fullCircle": true, "gridType": "RD", "gridWidth": 5, "groupIcon": "136041", "grow": "DOWN", "id": "Raid Healer Mana", "ignoreOptionsEventErrors": true, "internalVersion": 38, "limit": 5, "load": { "class": { "multi": [] }, "size": { "multi": [] }, "spec": { "multi": [] }, "use_class": false }, "radius": 200, "regionType": "dynamicgroup", "rotation": 0, "rowSpace": 1, "scale": 1, "selfPoint": "TOP", "semver": "1.0.0", "sort": "none", "space": 2, "stagger": 0, "subRegions": [], "tocversion": 11305, "triggers": [ { "trigger": { "debuffType": "HELPFUL", "event": "Health", "names": [], "spellIds": [], "subeventPrefix": "SPELL", "subeventSuffix": "_CAST_START", "type": "aura2", "unit": "player" }, "untrigger": [] } ], "uid": "m8artOu3UVD", "url": "https://wago.io/7Z_gHsD75/1", "useLimit": false, "version": 1, "xOffset": -740, "yOffset": 538.00085449219 }, "m": "d", "s": "3.0.5", "v": 1421, "wagoID": "7Z_gHsD75" }