Stagger Bar
this weak aura will show you how much damage you have reserved in your Stagger
|
|
| Quick Facts |
|---|
this weak aura will show you how much damage you have reserved in your Stagger
Contains custom functions.
Code has been reviewed and is safe to use, custom functions might affect in-game performance.
{
"m": "d",
"d": {
"sparkWidth": 10,
"sparkOffsetX": 0,
"xOffset": -307.81,
"adjustedMax": "1000",
"adjustedMin": "0",
"yOffset": -222.35,
"anchorPoint": "CENTER",
"conditions": [],
"sparkRotation": 0,
"sparkRotationMode": "AUTO",
"url": "https:\/\/wa.classlessdb.com\/posts\/158",
"backgroundColor": [
0,
0,
0,
0.5
],
"triggers": {
"1": {
"trigger": {
"type": "custom",
"custom_hide": "timed",
"subeventSuffix": "_CAST_START",
"unit": "player",
"duration": "2",
"event": "Health",
"subeventPrefix": "SPELL",
"custom_type": "stateupdate",
"custom": "function(event, ...)\n MainEvent, time, subevent, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, damageTaken, k, l, staggerDamageTaken, test, school = ...\n if subevent == \"SPELL_PERIODIC_DAMAGE\" and k == \"Stagger\" then\n for i=1,40 do\n local name, _, _, _, _, _, etime = UnitAura(\"player\",i,\"HARMFUL\")\n if name == \"Stagger\" then\n remainingTicks = math.ceil(etime-GetTime())\n end\n end\n aura_env.staggerDamage = staggerDamageTaken * remainingTicks\n \n DEFAULT_CHAT_FRAME:AddMessage(durationLeft)\n DEFAULT_CHAT_FRAME:AddMessage(remainingTicks)\n DEFAULT_CHAT_FRAME:AddMessage(aura_env.staggerDamage)\n durationLeft = aura_env.state.duration --= aura_env.staggerDamage or 0\n \n end\n return true\nend",
"spellIds": [],
"events": "COMBAT_LOG_EVENT_UNFILTERED",
"check": "event",
"dynamicDuration": false,
"names": [],
"debuffType": "HELPFUL"
},
"untrigger": []
},
"2": {
"trigger": {
"useName": true,
"unit": "player",
"auranames": [
"Stagger"
],
"useTotal": false,
"debuffType": "HARMFUL",
"type": "aura2",
"useRem": false
},
"untrigger": []
},
"disjunctive": "any",
"activeTriggerMode": -10
},
"icon_color": [
1,
1,
1,
1
],
"internalVersion": 52,
"animation": {
"start": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"main": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"finish": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
}
},
"selfPoint": "CENTER",
"barColor": [
1,
0,
0,
1
],
"desaturate": false,
"customText": "function()\n aura_env.staggerDamage = aura_env.staggerDamage or 0\n return aura_env.staggerDamage\nend",
"sparkOffsetY": 0,
"subRegions": [
{
"type": "aurabar_bar"
},
{
"type": "subbackground"
},
{
"type": "subforeground"
},
{
"text_shadowXOffset": 1,
"text_text": "%c1",
"text_shadowColor": [
0,
0,
0,
1
],
"text_selfPoint": "AUTO",
"text_automaticWidth": "Auto",
"text_fixedWidth": 64,
"anchorYOffset": 0,
"text_justify": "CENTER",
"rotateText": "NONE",
"type": "subtext",
"text_text_format_p_format": "timed",
"text_color": [
1,
1,
1,
1
],
"text_font": "Friz Quadrata TT",
"anchorXOffset": 0,
"text_shadowYOffset": -1,
"text_fontType": "None",
"text_wordWrap": "WordWrap",
"text_visible": true,
"text_anchorPoint": "INNER_LEFT",
"text_text_format_p_time_precision": 1,
"text_text_format_c1_format": "none",
"text_fontSize": 20,
"text_text_format_p_time_dynamic_threshold": 60,
"text_text_format_p_time_format": 0
},
{
"text_shadowXOffset": 1,
"text_text": "%n",
"text_shadowColor": [
0,
0,
0,
1
],
"text_selfPoint": "AUTO",
"text_automaticWidth": "Auto",
"text_fixedWidth": 64,
"anchorYOffset": 0,
"text_justify": "CENTER",
"rotateText": "NONE",
"type": "subtext",
"text_color": [
1,
1,
1,
1
],
"text_font": "Friz Quadrata TT",
"text_shadowYOffset": -1,
"text_wordWrap": "WordWrap",
"text_visible": true,
"text_anchorPoint": "INNER_RIGHT",
"text_text_format_n_format": "none",
"text_fontSize": 12,
"anchorXOffset": 0,
"text_fontType": "None"
}
],
"height": 37.826,
"authorOptions": [],
"load": {
"talent3": {
"single": 1,
"multi": [
true
]
},
"talent2": {
"single": 10,
"multi": {
"10": true
}
},
"use_never": false,
"talent": {
"single": 128,
"multi": {
"5": true,
"128": true
}
},
"class": {
"single": "PRIEST",
"multi": {
"DRUID": true
}
},
"spec": {
"multi": []
},
"faction": {
"single": "Alliance",
"multi": {
"Alliance": true
}
},
"size": {
"multi": []
}
},
"sparkBlendMode": "ADD",
"useAdjustededMax": false,
"customTextUpdate": "update",
"source": "import",
"config": [],
"uid": "eDX4A7GvJoR",
"desc": "Made by Szyler",
"width": 200,
"useAdjustededMin": true,
"regionType": "aurabar",
"frameStrata": 1,
"actions": {
"start": {
"do_custom": false
},
"init": {
"do_custom": true,
"custom": "aura_env.staggerDamage = 0"
},
"finish": []
},
"icon_side": "LEFT",
"id": "Stagger Bar",
"sparkTexture": "Interface\\CastingBar\\UI-CastingBar-Spark",
"sparkHeight": 30,
"texture": "ElvUI Norm",
"auto": false,
"zoom": 0,
"spark": false,
"tocversion": 30300,
"sparkHidden": "NEVER",
"alpha": 1,
"anchorFrameType": "SCREEN",
"useTooltip": true,
"sparkColor": [
1,
1,
1,
1
],
"inverse": false,
"iconSource": 0,
"orientation": "HORIZONTAL",
"displayIcon": "Interface\\Icons\\ability_warrior_intensifyrage",
"information": {
"ignoreOptionsEventErrors": true
},
"icon": true
},
"s": "3.2.3",
"v": 1421
}