How do you add them in?
How do you add them in?
trinkets:
healthstone:Code:{ "#trinket1", { "condition" }, "target", }, { "#trinket2", { "condition" }, "target", },
To use a potion you can use the healthstone example just change the ID to that of the potion you want to use.Code:{ "#5512", { "player.health < 35", }, },
/use 13 and /use 14 also function.
ProbablyEngine - Developer and Lead Support
A Powerful Rotation Bot: ProbablyEngine
Is there any better way to do this instead of listing every heroism spell?
{ "#57723", "unit.debuff(80353)" }, -- Int Pot on time warp
{ "#57723", "unit.debuff(2825)" }, -- Int Pot on bloodlust
hashero is a function. i haven't tested it yet though.
Because of the way nesting works you may have issues with "player.hashero" not working. In the end I ended up making my own Library function call for it. Once my main PC is back up I'll update this post with the function.
Code:--[[------------------------------------------------------------------------------------------------ CHECK HAS BURST HASTE BUFF --------------------------------------------------------------------------------------------------]] function LibStinky.CheckHasBurstHaste() local burst_haste_buffs = { 32182, -- Heroism 90355, -- Ancient Hysteria 80353, -- Time Warp 2825, -- Bloodlust 146555 -- Drums } for i = 1, #burst_haste_buffs do if UnitBuff('player', GetSpellName(burst_haste_buffs[i])) then print("Burst Haste Active!") return true else return false end end end