Wild Imp Tracker
Tracks how many imps you have spawned using Hand of Gul'dan
|
Quick Facts |
---|
Tracks how many imps you have spawned using Hand of Gul'dan
Contains custom functions.
Code has been reviewed and is safe to use, custom functions might affect in-game performance.
{
"m": "d",
"d": {
"iconSource": 0,
"authorOptions": [],
"customText": "function()\n return imps\nend",
"yOffset": 0,
"anchorPoint": "CENTER",
"customTextUpdate": "update",
"url": "https:\/\/weakauras.io\/posts\/200",
"actions": {
"start": [],
"init": {
"do_custom": true,
"custom": "a, f, k, imps, wl = 0, CreateFrame(\"Frame\"), 0, 0, {}\nfunction t(n)\n tinsert(wl, n)\n f:SetScript(\"OnUpdate\", function(_, e)\n if wl[1] then\n if a <= 15 then\n a = a + e\n else\n a = 0\n imps = imps - wl[1] + k\n k = 0\n tremove(wl, 1)\n end\n else\n f:SetScript(\"OnUpdate\", nil)\n end\n end)\nend"
},
"finish": []
},
"triggers": {
"1": {
"trigger": {
"type": "custom",
"subeventSuffix": "_CAST_START",
"custom_hide": "timed",
"duration": "15",
"event": "Health",
"dynamicDuration": false,
"names": [],
"events": "UNIT_SPELLCAST_SUCCEEDED",
"custom": "function (_, a1, a2)\n if a1 == \"player\" then\n if a2 == \"Hand of Gul'dan\" then\n if UnitBuff(\"player\", \"Decimation\") then\n imps = imps + 6\n t(6)\n else\n imps = imps + 4\n t(4)\n end\n return imps\n elseif a2 == \"Incinerate\" or a2 == \"Mind Blast\" and imps > 0 then\n if imps > 0 then\n imps = imps - 1\n k = k + 1\n return imps\n end\n end\n end\nend",
"subeventPrefix": "SPELL",
"unit": "player",
"spellIds": [],
"custom_type": "event",
"debuffType": "HELPFUL"
},
"untrigger": {
"custom": "function()\n return 0\nend"
}
},
"disjunctive": "any",
"activeTriggerMode": -10
},
"internalVersion": 52,
"keepAspectRatio": false,
"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"
}
},
"desc": "Made by Matthz#6933",
"subRegions": [
{
"type": "subbackground"
},
{
"text_shadowXOffset": 0,
"text_text_format_s_format": "none",
"text_text": "%c",
"text_shadowColor": [
0,
0,
0,
1
],
"text_selfPoint": "AUTO",
"text_automaticWidth": "Auto",
"text_fixedWidth": 64,
"anchorYOffset": 0,
"text_justify": "CENTER",
"type": "subtext",
"text_color": [
1,
1,
1,
1
],
"text_font": "Friz Quadrata TT",
"text_shadowYOffset": 0,
"text_wordWrap": "WordWrap",
"text_visible": true,
"text_anchorPoint": "INNER_BOTTOMRIGHT",
"text_text_format_c_format": "none",
"text_text_format_c1_format": "none",
"text_fontSize": 12,
"anchorXOffset": 0,
"text_fontType": "OUTLINE"
}
],
"height": 48,
"load": {
"size": {
"multi": []
},
"spec": {
"multi": []
},
"class": {
"multi": []
},
"talent": {
"multi": []
}
},
"source": "import",
"regionType": "icon",
"icon": true,
"cooldown": false,
"displayIcon": "Interface\\Icons\\Spell_Shadow_SummonImp",
"selfPoint": "CENTER",
"color": [
1,
1,
1,
1
],
"zoom": 0,
"config": [],
"tocversion": 30300,
"id": "Wild Imp Tracker",
"alpha": 1,
"frameStrata": 1,
"width": 48,
"anchorFrameType": "SCREEN",
"uid": "mN3fCfrkg(o",
"inverse": false,
"xOffset": 0,
"cooldownEdge": false,
"conditions": [],
"information": [],
"desaturate": false
},
"s": "4.0.0",
"v": 1421
}