wow-addons/WA-PrayerOfHealingHelper/PrayerOfHealingHelper.table

266 lines
7 KiB
Plaintext
Raw Normal View History

2021-05-26 22:29:43 +02:00
{
"d": {
"actions": {
"finish": [],
"init": {
"custom": "aura_env.unitHealths = {}",
"do_custom": true
},
"start": []
},
"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 local angle = (progress * 2 * math.pi) - (math.pi / 2)\n local newProgress = ((math.sin(angle) + 1)/2);\n return r1 + (newProgress * (r2 - r1)),\n g1 + (newProgress * (g2 - g1)),\n b1 + (newProgress * (b2 - b1)),\n a1 + (newProgress * (a2 - a1))\nend\n",
"colorG": 1,
"colorR": 1,
"colorType": "pulseColor",
"duration_type": "seconds",
"easeStrength": 3,
"easeType": "none",
"rotate": 0,
"scalex": 1,
"scaley": 1,
"type": "custom",
"use_color": false,
"x": 0,
"y": 0
},
"start": {
"duration_type": "seconds",
"easeStrength": 3,
"easeType": "none",
"type": "none"
}
},
"authorOptions": [],
"backgroundColor": [
0,
0,
0,
0.5
],
"barColor": [
1,
1,
1,
1
],
"conditions": [
{
"changes": [
{
"property": "barColor",
"value": [
1,
1,
0,
1
]
}
],
"check": {
"trigger": -1,
"value": "function(states)\n local poh5Hps = states[1].value / 3.0\n local fh7Hps = (992 + GetSpellBonusHealing() * 0.429) / 1.5\n return poh5Hps > fh7Hps\nend",
"variable": "customcheck"
}
},
{
"changes": [
{
"property": "barColor",
"value": [
0,
1,
0,
1
]
}
],
"check": {
"op": "",
"trigger": -1,
"value": "function(states)\n local poh5Hps = states[1].value / 3.0\n local gh5Hps = (2288 + GetSpellBonusHealing() * 0.857) / 2.5\n return poh5Hps > gh5Hps\nend",
"variable": "customcheck"
}
}
],
"config": [],
"desaturate": false,
"frameStrata": 1,
"height": 259.00024414063,
"icon": false,
"iconSource": -1,
"icon_color": [
1,
1,
1,
1
],
"icon_side": "RIGHT",
"id": "Prayer of Healing Helper",
"information": [],
"internalVersion": 45,
"inverse": false,
"load": {
"class": {
"multi": [],
"single": "PRIEST"
},
"ingroup": {
"multi": {
"group": true,
"raid": true
}
},
"size": {
"multi": []
},
"spec": {
"multi": []
},
"spellknown": 25316,
"talent": {
"multi": []
},
"use_class": true,
"use_exact_spellknown": false,
"use_ingroup": false,
"use_never": false,
"use_spellknown": true,
"zoneIds": ""
},
"orientation": "VERTICAL_INVERSE",
"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": "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": "RIGHT",
"text_shadowColor": [
0,
0,
0,
1
],
"text_shadowXOffset": 1,
"text_shadowYOffset": -1,
"text_text": "%p",
"text_text_format_n_format": "none",
"text_text_format_p_big_number_format": "AbbreviateNumbers",
"text_text_format_p_decimal_precision": 0,
"text_text_format_p_format": "Number",
"text_text_format_p_round_type": "round",
"text_text_format_p_time_dynamic_threshold": 0,
"text_text_format_p_time_precision": 1,
"text_visible": true,
"text_wordWrap": "WordWrap",
"type": "subtext"
}
],
"texture": "Minimalist",
"tocversion": 11307,
"triggers": {
"1": {
"trigger": {
"custom": "function(event, unitTarget)\n if unitTarget == nil then\n return false\n end\n aura_env.unitHealths[unitTarget] = UnitHealthMax(unitTarget) - UnitHealth(unitTarget)\n return true\nend",
"customDuration": "function()\n local poh5Heal = 1177 + GetSpellBonusHealing() * 0.286\n \n local current = 0\n for unit, missingHealth in pairs(aura_env.unitHealths) do\n if IsSpellInRange(\"Dispel Magic\", unit) then -- same range as untalented PoH\n current = current + min(missingHealth, poh5Heal)\n end \n end\n local max = poh5Heal * 5\n return current, max, true\nend",
"custom_hide": "custom",
"custom_type": "event",
"debuffType": "HELPFUL",
"duration": "1",
"dynamicDuration": true,
"event": "Combat Log",
"events": "UNIT_HEALTH_FREQUENT:party",
"names": [],
"spellIds": [],
"subeventPrefix": "SPELL",
"subeventSuffix": "_CAST_START",
"type": "custom",
"unevent": "timed",
"unit": "player"
},
"untrigger": []
},
"2": {
"trigger": {
"debuffType": "HELPFUL",
"duration": "1",
"event": "Conditions",
"names": [],
"spellIds": [],
"subeventPrefix": "SPELL",
"subeventSuffix": "_CAST_START",
"type": "unit",
"unevent": "auto",
"unit": "player",
"use_alwaystrue": true,
"use_unit": true
},
"untrigger": []
},
"activeTriggerMode": 1,
"disjunctive": "any"
},
"uid": "iHkLjo5fN1z",
"url": "https://wago.io/TsF6TtVcs/1",
"useAdjustededMax": false,
"useAdjustededMin": false,
"version": 1,
"wagoID": "TsF6TtVcs",
"width": 15.000045776367,
"xOffset": -415.99993896484,
"yOffset": -325.49966430664,
"zoom": 0
},
"m": "d",
"s": "3.3.0",
"v": 1421,
"wagoID": "TsF6TtVcs"
}