Page 1 of 1

Custom rotation

Posted: 16 May 2019, 07:47
by Banane
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?

Re: Custom rotation

Posted: 18 May 2019, 15:04
by Kaminaris
Check out how I've done this in class module, basically there are no parameters anymore. Everything is in
MaxDps.FrameData