Spellbind Roulette Warning
Shows a flashing icon + text warning for the current spell you should not cast in spellbind roulette.
|
|
| Quick Facts |
|---|
Shows a flashing icon + text warning for the current spell you should not cast in spellbind roulette.
Contains custom functions.
Code has been reviewed and is safe to use, custom functions might affect in-game performance.
{
"m": "d",
"d": {
"iconSource": -1,
"xOffset": 240,
"yOffset": 120,
"anchorPoint": "CENTER",
"cooldownEdge": false,
"icon": true,
"triggers": {
"1": {
"trigger": {
"duration": "30",
"names": [],
"customIcon": "function()\n return aura_env.icon\nend",
"debuffType": "HELPFUL",
"type": "custom",
"custom_type": "event",
"custom_hide": "timed",
"events": "CHAT_MSG_RAID_BOSS_EMOTE",
"event": "Chat Message",
"spellIds": [],
"unit": "player",
"customName": "function()\n return aura_env.spell and RED_FONT_COLOR:WrapText(aura_env.spell)\nend",
"custom": "function(event, msg)\n if event ~= \"CHAT_MSG_RAID_BOSS_EMOTE\" then return end\n if not WA_GetUnitDebuff(\"player\", 900935) then\n local spellID = msg:match(\"|c%x%x%x%x%x%x%x%x|Hspell:(%d+)\")\n spellID = spellID and tonumber(spellID)\n if not spellID or spellID == 0 then return end\n local spell, _, icon = GetSpellInfo(spellID)\n if not spell then return end\n aura_env.spell = spell\n aura_env.icon = icon\n return true\n end\nend",
"subeventSuffix": "_CAST_START",
"use_message": true,
"subeventPrefix": "SPELL",
"use_messageType": true,
"messageType": "CHAT_MSG_RAID_BOSS_EMOTE"
},
"untrigger": []
},
"2": {
"trigger": {
"duration": "5",
"names": [],
"customIcon": "function()\n return aura_env.icon\nend",
"debuffType": "HELPFUL",
"type": "custom",
"subeventSuffix": "_CAST_START",
"custom_hide": "timed",
"events": "CHAT_MSG_RAID_BOSS_EMOTE",
"event": "Chat Message",
"subeventPrefix": "SPELL",
"unit": "player",
"customName": "function()\n return aura_env.spell and RED_FONT_COLOR:WrapText(aura_env.spell)\nend",
"spellIds": [],
"custom_type": "event",
"use_message": true,
"custom": "function(event, msg)\n if event ~= \"CHAT_MSG_RAID_BOSS_EMOTE\" then return end\n if WA_GetUnitDebuff(\"player\", 900935) then\n local spellID = msg:match(\"|c%x%x%x%x%x%x%x%x|Hspell:(%d+)\")\n spellID = spellID and tonumber(spellID)\n if not spellID or spellID == 0 then return end\n local spell, _, icon = GetSpellInfo(spellID)\n if not spell then return end\n aura_env.spell = spell\n aura_env.icon = icon\n return true\n end\nend",
"use_messageType": true,
"messageType": "CHAT_MSG_RAID_BOSS_EMOTE"
},
"untrigger": []
},
"3": {
"trigger": {
"type": "aura2",
"useExactSpellId": true,
"unit": "player",
"auraspellids": [
"93160",
"93161",
"93162",
"900935"
],
"debuffType": "HARMFUL"
},
"untrigger": []
},
"disjunctive": "custom",
"customTriggerLogic": "function(t) return (t[1] or t[2]) and t[3] end",
"activeTriggerMode": -10
},
"internalVersion": 52,
"keepAspectRatio": false,
"selfPoint": "CENTER",
"desaturate": false,
"subRegions": [
{
"type": "subbackground"
},
{
"text_shadowXOffset": 0,
"text_text_format_s_format": "none",
"text_text": "DO NOT CAST\\n%n",
"text_shadowColor": [
0,
0,
0,
1
],
"text_selfPoint": "TOP",
"text_automaticWidth": "Auto",
"text_fixedWidth": 64,
"anchorYOffset": 0,
"text_justify": "CENTER",
"type": "subtext",
"text_color": [
1,
1,
1,
1
],
"text_font": "PT Sans Narrow",
"text_shadowYOffset": 0,
"text_wordWrap": "WordWrap",
"text_visible": true,
"text_anchorPoint": "OUTER_BOTTOM",
"text_fontType": "OUTLINE",
"text_fontSize": 22,
"anchorXOffset": 0,
"text_text_format_n_format": "none"
},
{
"border_size": 2,
"type": "subborder",
"border_color": [
1,
0,
0.066667,
1
],
"border_visible": true,
"border_edge": "Square Full White",
"border_offset": 0
},
{
"text_text_format_p_time_precision": 1,
"text_text": "%p",
"text_shadowColor": [
0,
0,
0,
1
],
"text_selfPoint": "TOP",
"text_automaticWidth": "Auto",
"text_fixedWidth": 64,
"anchorYOffset": 0,
"text_justify": "CENTER",
"type": "subtext",
"text_color": [
1,
1,
1,
1
],
"text_font": "PT Sans Narrow",
"text_fontType": "OUTLINE",
"text_shadowYOffset": 0,
"anchorXOffset": 0,
"text_wordWrap": "WordWrap",
"text_visible": true,
"text_anchorPoint": "INNER_TOP",
"text_text_format_p_time_format": 0,
"text_text_format_p_format": "timed",
"text_fontSize": 14,
"text_text_format_p_time_dynamic_threshold": 60,
"text_shadowXOffset": 0
}
],
"height": 64,
"load": {
"talent": {
"multi": []
},
"spec": {
"multi": []
},
"class": {
"multi": []
},
"size": {
"multi": []
}
},
"source": "import",
"regionType": "icon",
"animation": {
"start": {
"type": "preset",
"easeType": "none",
"duration_type": "seconds",
"easeStrength": 3,
"preset": "grow"
},
"main": {
"type": "preset",
"easeType": "none",
"duration_type": "seconds",
"easeStrength": 3,
"preset": "alphaPulse"
},
"finish": {
"type": "preset",
"easeType": "none",
"duration_type": "seconds",
"easeStrength": 3,
"preset": "grow"
}
},
"information": [],
"conditions": [],
"zoom": 0.2,
"actions": {
"start": [],
"finish": [],
"init": []
},
"tocversion": 30300,
"id": "Spellbind Roulette Warning",
"authorOptions": [],
"alpha": 1,
"anchorFrameType": "SCREEN",
"uid": "G43qwOEDY9R",
"config": [],
"inverse": false,
"color": [
1,
1,
1,
1
],
"width": 64,
"displayIcon": "interface\\\\icons\\\\nhi_shadowsilence_Border",
"cooldown": false,
"frameStrata": 3
},
"s": "4.1.5",
"v": 1421
}