Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- ["outline"] = "THICKOUTLINE",
- ["fontSize"] = 32,
- ["xOffset"] = 0.00018310546875,
- ["displayText"] = "%c",
- ["customText"] = "function()\n local t = aura_env.getIconTexture(aura_env.myPos)\n local color = aura_env.getColor(aura_env.myPos)\n return aura_env.myPos and (t .. color ..\"SOAK\" .. t) or \"don't soak\"\nend\n\n\n\n\n\n\n\n\n\n\n",
- ["yOffset"] = 100.00018310547,
- ["regionType"] = "text",
- ["init_started"] = 1,
- ["activeTriggerMode"] = -10,
- ["customTextUpdate"] = "update",
- ["actions"] = {
- ["start"] = {
- },
- ["finish"] = {
- },
- ["init"] = {
- ["do_custom"] = true,
- ["custom"] = "\naura_env.getIconTexture = function (n)\n return (\"\"):format(n or 1) \nend\n\naura_env.getColor = function(n)\n return \n n == 1 and \"\" or\n n == 2 and \"\" or\n n == 3 and \"\" or\n n == 4 and \"\" or\n \"\" \nend\n\naura_env.debugPrint = function(t)\n local p = {}\n for _,v in pairs(t) do\n p[v.pos] = (p[v.pos] or v.pos) .. \" - \" .. v.name\n end\n for _,v in ipairs(p) do\n print(v)\n end\nend\n\naura_env.prev = 0\n\naura_env.shots = {}\naura_env.soaker = {}\naura_env.myPos = 8\n\naura_env.buff = GetSpellInfo(239362)\naura_env.debuff = GetSpellInfo(230139)\n\n\n\n\n\n",
- },
- },
- ["untrigger"] = {
- },
- ["anchorPoint"] = "CENTER",
- ["animation"] = {
- ["start"] = {
- ["duration_type"] = "seconds",
- ["type"] = "none",
- },
- ["main"] = {
- ["duration_type"] = "seconds",
- ["type"] = "none",
- },
- ["finish"] = {
- ["duration_type"] = "seconds",
- ["type"] = "none",
- },
- },
- ["justify"] = "LEFT",
- ["selfPoint"] = "BOTTOM",
- ["trigger"] = {
- ["type"] = "custom",
- ["custom_type"] = "event",
- ["duration"] = "6",
- ["event"] = "Health",
- ["unit"] = "player",
- ["debuffType"] = "HELPFUL",
- ["names"] = {
- },
- ["custom"] = "function(event, _, message, _, sourceGUID, sourceName, _, _, destGUID, destName, _, _, spellId)\n if message == \"SPELL_AURA_APPLIED\" and spellId == 230139 then\n local t = GetTime()\n if t-aura_env.prev > 5 then\n wipe(aura_env.shots)\n wipe(aura_env.soaker)\n aura_env.myPos = nil\n aura_env.prev = t\n end\n \n \n aura_env.shots[#aura_env.shots+1] = destName\n \n local _, _, diff = GetInstanceInfo()\n local shots = diff == 15 and 3 or 4 -- Heroic: 3, Mythic: 4\n if #aura_env.shots == shots then\n WeakAuras.ScanEvents('WA_SdP_HydraShot')\n end\n end\n if event == \"WA_SdP_HydraShot\" then\n local _, _, _, instanceId = UnitPosition(\"player\")\n \n aura_env.myPos = nil\n for i=1,30 do\n local unit = (\"raid%d\"):format(i)\n local _, _, _, tarInstanceId = UnitPosition(unit)\n \n if tarInstanceId == instanceId\n and UnitIsConnected(unit)\n and not GetPartyAssignment(\"MAINTANK\", unit) \n and UnitGroupRolesAssigned(unit) ~= \"TANK\" \n and not UnitDebuff(unit, aura_env.buff) \n and not UnitDebuff(unit, aura_env.debuff)\n and not UnitIsDead(unit) then\n local pos = (#aura_env.soaker+1)%4 + 1\n aura_env.soaker[#aura_env.soaker+1] = {name = UnitName(unit), pos = pos}\n \n if UnitIsUnit(unit, \"player\") then\n aura_env.myPos = pos\n end\n end\n end\n \n WeakAuras.ScanEvents('WA_SdP_HydraList', aura_env.shots, aura_env.soaker)\n \n if aura_env.myPos then\n return true\n end\n end\nend\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
- ["subeventPrefix"] = "SPELL",
- ["subeventSuffix"] = "_CAST_START",
- ["spellIds"] = {
- },
- ["events"] = "COMBAT_LOG_EVENT_UNFILTERED,WA_SdP_HydraShot",
- ["custom_hide"] = "timed",
- },
- ["id"] = "ToS-05-Hydra Soak - My Soak v4",
- ["frameStrata"] = 1,
- ["width"] = 156.22215270996,
- ["anchorFrameType"] = "SCREEN",
- ["font"] = "Arial Narrow",
- ["numTriggers"] = 1,
- ["color"] = {
- [1] = 1,
- [2] = 1,
- [3] = 1,
- [4] = 1,
- },
- ["height"] = 32.222160339355,
- ["conditions"] = {
- },
- ["load"] = {
- ["talent2"] = {
- ["multi"] = {
- },
- },
- ["talent"] = {
- ["multi"] = {
- },
- },
- ["encounterid"] = "2037",
- ["ingroup"] = {
- ["multi"] = {
- },
- },
- ["use_encounterid"] = true,
- ["difficulty"] = {
- ["multi"] = {
- },
- },
- ["race"] = {
- ["multi"] = {
- },
- },
- ["role"] = {
- ["multi"] = {
- },
- },
- ["faction"] = {
- ["multi"] = {
- },
- },
- ["spec"] = {
- ["multi"] = {
- },
- },
- ["class"] = {
- ["multi"] = {
- },
- },
- ["pvptalent"] = {
- ["multi"] = {
- },
- },
- ["size"] = {
- ["multi"] = {
- },
- },
- },
- ["disjunctive"] = "all",
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement