WeakAura for Enhanced Pyrotechnics with 2p t19

Note that these are only related to World of Warcraft! Posts regarding different games or software will be removed.
Pank
Posts: 32
Joined: Tue Oct 25, 2016 9:17 am

WeakAura for Enhanced Pyrotechnics with 2p t19

Unread postby Pank Tue Jan 24, 2017 8:46 pm

Hey! Like stated in the title.. Majority of the popular weakaura setups have enhanced pyrotechnics working on 10%+ each time fireball does not crit. Can someone help me with lua so it accounts for those additional 20%+ on top?

Currently Im using Powered Fire Hud, but it isnt updated to work with the 2p yet. This is the link to his work and under the post there is the lua code. If anyone can help, thanks in advance!

https://wago.io/4J5eIc5d-" target="_blank

function()
aura_env.K_crit = aura_env.K_crit or 0

return string.format([[%.0f]], aura_env.K_crit) .. "%%"
end
User avatar
Chiv
Posts: 95
Joined: Mon Mar 30, 2015 9:09 pm

Re: WeakAura for Enhanced Pyrotechnics with 2p t19

Unread postby Chiv Tue Feb 07, 2017 1:40 am

Code: Select all

d0enpaGiikxIGkJcQ4uqLwfej1RiqvZIq1TKIAxkf)IafnmiCmizzOqpdLY0euxtG2Mu4BqeJJGCocP1brI3rGcZdIKCpuK9rGkhef1crP6HektKaL6Iuu1grb(ievJKGIojbvTsuYlPO0mrbDtcHDcP(jfvgQuelLGs9ujtvjxLa5RqK6TsrQ7kfj7v1FPWGromvwSaEmuMScUSOnlL(Ss1OvkDAuTAck8AkkMnLUTcTBQ63cnCOQLt0Zv00jDDPA7uKVtiA8eW5fK1tqjZNaLSFWh1xVCFD918fJByBdIniEn(A41WxVeWCTTZupdqsdgrfoCqgzRrWGbfcfQ32C4gVK5op6xHWNV2LXo(xomLBkxs((EkfrCip6MrH41mTTnjY96l2n3AzorWqZZG1l(WlgWLzaN1cKysU(Y3hxs((EkNhnQxHmxB7m1ZGMrcQGIgu0gnAeejIkuJgbFBZHd(AGpfgDpMYnLVCw7lB0n81l1ztV(1RXUv5FD96R(mnWSU58Lk75lPdl)61y3Q8VUE9vRdt5r)xVg7wL)11RVWBcV6SPx)61y3Q8VUE9LmAZ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pW1xHmxB7m1JUzHUE0m(1Rar5qkflAJYVoAuhnIJMXJgXrZ2rJ4OdFg0OrJGSXiscYw4WiqsdKi6BBoiBxF1g9kdSU95lZjOfdfE0M)vaNuSOnk)6OrD0io6WNbcXgQWSXyy2eLnuSXicgf9Tnhm41x2OB4Rxt8j2xVMC)UnpAgV(QptdFAkLpWl1ztV(1RXUv5FD96R(mnmLB5y28bEHzDZ5xVMC)UnFjcMrU5V(QptdVBmFGxYOn)61y3Q8VUE91aVTLJ1TAOVEn2Tk)RRxFjDy5xVg7wL)11RVWBcV6SPx)61y3Q8VUE9vFMgt8j2z)vRdt5r)xVg7wL)11RV6Z0alogWPN9x9zAGzDZ5z)6lzUZJ(vi85lxx6c4KVMQdZmZh4vGOCiLcVFM6rJ6Ldt5MYLKVVNsrehYJgXlvY33t5xV0q4Zxt1P95R(mnCwr6cnvzpp7V6(0u61xUUgFLMsV(sSOFGR8OF(QptJUNRN9xy9Pghn2YhYxkFmhU(stb0h4LYht5d8kGdZmdYiEXI2O8RJg1rJ4Oz8OrC0SD0io6WNbbriecrBGeKiudeichwiuVT5GbV(IJf9pWRar5qklUWkp6GiE5gg4kp6DwdvY33t58RRV4dVetYvGwPakqSJ8xTs3ywQ0PUJMXxIKpOBp6GiEfWHzMDzS7helAJYVo6WhnInHrsy2ckuducXyqrdZ21xd8jERl0kfqf289T6lGE57JljFFpLZJg1Rar5qknxB7m1Jg1Rb(eV1fALcOmmB1xaD96lthnQWmI66pa
Here is the one I use

Lua code

Code: Select all

function () local now = GetTime(); local WA_STATS_LAST_UP = WA_STATS_LAST_UP or now - 1 local enh_pyro = GetSpellInfo (157644) local enh_pyro_stacks = select(4, UnitBuff("player", enh_pyro)) or 0 local combustion = GetSpellInfo(190319) local combustion_active = UnitBuff("player", combustion) local reg = WeakAuras.regions[ aura_env.id ].region if now >= WA_STATS_LAST_UP + 0.1 then WA_STATS_LAST_UP = now local int = select(1, UnitStat("player", 4)) or 0 local mas = GetMasteryEffect() or 0 local has = UnitSpellHaste("player") or 0 local crit = GetSpellCritChance(6) or 0 local dmg = GetSpellBonusDamage(6) or 0 aura_env.K_crit = crit + (30 * enh_pyro_stacks) end if combustion_active ~= nil then aura_env.K_crit = 100 reg.text:SetTextColor(1, 195/255, 0, 1) return true elseif aura_env.K_crit >= 60 then reg.text:SetTextColor(.8, .5, 0, 1) elseif aura_env.K_crit < 60 then reg.text:SetTextColor(1, 1, 1, 1) end return true end
Just change 30 * enh_pyro_stacks to 10 for no 2pc
This is under trigger 2

Return to “Addons, Macros, UI and technical issues”

Who is online

Users browsing this forum: No registered users and 3 guests