Outlaw

1 post Page 1 of 1

Outlaw

 
moondran
Posts: 1
Joined: 22 Sep 2018, 21:47


I have modified the code a bit for my Outlaw rogue, note that this will only work for Outlaw with TALENTS 2-3-1-2-3-2-3. It's probably not perfect but a good start.
Code: Select all
-- TALENTS 2-3-1-2-3-2-3

local _RollOfTheBones = 193316;
local _SinisterStrike = 193315;
local _PistolShot = 185763;
local _Dispatch = 2098;
local _Oppertunity = 195627;
local _BetweenTheEyes = 199804;
local _Adrenaline = 13750;
local _KillingSpree = 51690;

-- Auras
local _RestlessBlades = 79096;
local _Broadside = 193356;
local _RuthlessPrec = 193357;
local _GrandMelee = 193358;
local _TrueBearing = 193359;
local _BuriedTresure = 199600;
local _SkullCross = 199603;

MaxDps.Rogue = {};

function MaxDps.Rogue.CheckTalents()
end

function MaxDps:EnableRotationModule(mode)
MaxDps.NextSpell = MaxDps.Rogue.Outlaw;
end



function MaxDps.Rogue.Outlaw(_, timeShift, currentSpell, gcd, talents)
	local energy = UnitPower('player', Enum.PowerType.Energy);
	local combo = UnitPower('player', Enum.PowerType.ComboPoints);
	
	-- roll the bones auras
	local   rob = {
		RB = MaxDps:Aura(_RestlessBlades, timeShift + 3),
		BS = MaxDps:Aura(_Broadside, timeShift + 3),
		RP = MaxDps:Aura(_RuthlessPrec, timeShift + 3),
		GM = MaxDps:Aura(_GrandMelee, timeShift + 3),
		TB = MaxDps:Aura(_TrueBearing, timeShift + 3),
		BT = MaxDps:Aura(_BuriedTresure, timeShift + 3),
		SC = MaxDps:Aura(_SkullCross, timeShift + 3),
	}
	-- Count Auras
	local rbCount = 0;
	for k, v in pairs(rob) do
		if v then
			rbCount = rbCount + 1;
		end
	end
	local shouldRoll = not rob.TB and rbCount < 2;
	if shouldRoll and combo >= 4 and energy >= 20 then
		return _RollOfTheBones;
	end
	
	-- CD's
	if MaxDps:SpellAvailable(_Adrenaline, timeShift) and rbCount >= 2 then
	return _Adrenaline;
	end
	if MaxDps:SpellAvailable(_Adrenaline, timeShift) and rbCount >= 1 and MaxDps:Aura(_TrueBearing, timeShift + 3) then
	return _Adrenaline;
	end
	if MaxDps:SpellAvailable(_KillingSpree, timeShift) then
	return _KillingSpree;
	end

	-- Rotation
	if combo == 5 and MaxDps:Aura(_RuthlessPrec, timeShift + 3) and MaxDps:SpellAvailable(_BetweenTheEyes, timeShift) then
	return _BetweenTheEyes;
	end
	if combo == 5 and energy >= 25 then
	return _Dispatch;
        end

	if combo <= 3 and MaxDps:Aura(_Oppertunity, timeShift + 3) then
	return _PistolShot;
	end

	if combo <= 4 and energy >= 35 then 
	return _SinisterStrike;
	end

end
1 post Page 1 of 1
drogie łóżka stolik kawowy stół dębowy rozkładany