Can this not simply be a different diyce mode?
/run KillSequence("","sustain")
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
if enemy then
if (mode == "sustain") then
name = rune pulse, use = chain drive
name = throw, use = true
name = shadowstab, use = energy>=20
name = rune pulse, use = true
elseif (mode == "aggro") then
shockstrike
etc
else
dps skill
etc
end
end
|
Like any function in an addon, you can call it in a macro too. Although these can get very long very quickly, hence the diyce mode suggestion above. For example:
|
Source code
|
1
|
/run local myEnergy = GetUnitSkill("player") if FindBuffList("player","Chain Drive") then CastSpellByName("Rune Pulse") elseif myEnergy >= 20 then CastSpellByName("Shadowstab") else CastSpellByName("Throw") end
|