Sorry for my English translated from google translation.
Here, I would like to create a custom rotation but nothing is done, I can not.
I create my new function as in the tutorial: viewtopic.php?f=4&t=4&sid=80f597b4600d7 ... 99d999cc54
In the empty function created I would just like to put a cursor on TigerPalm according to the energy charge.
I tried that but it does not work
Code: Select all
Then that :
function(_, timeShift, currentSpell, gcd, talents)
local UnitPower = UnitPower;
local Energy = Enum.PowerType.Energy;
local energy = UnitPower('player', Energy);
-- Meteor
if MaxDps:SpellAvailable(100780, timeShift) And energy >50 then
return 100780;
end
end
Code: Select all
How to write this simple rotation?function(_, timeShift, currentSpell, gcd, talents)
local energy = UnitPower('player', SPELL_POWER_ENERGY);
local energyMax = UnitPowerMax('player', SPELL_POWER_ENERGY);
-- Meteor
if (MaxDps:SpellAvailable(100780, timeShift) And energy >50) then
return 100780;
end
end