Custom rotation

2 posts Page 1 of 1
Banane
Posts: 1
Joined: 16 May 2019, 07:14


Hello,

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
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
Then that :
Code: Select all
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
How to write this simple rotation?
Kaminaris
Site Admin
Posts: 409
Joined: 25 Jun 2017, 03:45


Check out how I've done this in class module, basically there are no parameters anymore. Everything is in
MaxDps.FrameData
2 posts Page 1 of 1
drogie łóżka stolik kawowy stół dębowy rozkładany