Page 1 of 1

Affliction - Custom by Conky

Posted: 02 Oct 2017, 18:14
by Conky
Spell list:
Code: Select all
-- NEW SPELLS
local _DimensionalRift = 196586;
local _Eradication = 196412;
local _LifeTap = 1454;
local _SummonDarkglare = 205180;
local _CallDreadstalkers = 104316;
local _GrimoireFelguard = 111898;
local _DemonicEmpowerment = 193396;
local _ThalkielsConsumption = 211714;
local _Demonbolt = 157695;
local _HandofDoom = 152107;

local _GrimoireofService = 108501;
local _GrimoireofSupremacy = 152107;
local _GrimoireofSacrifice = 108503;

-- SPELLS
local _ShadowBolt			= 686;
local _Metamorphosis		= 103958;
local _HandOfGuldan			= 105174;
local _SoulFire				= 104027;
local _Doom					= 603;
local _TouchOfChaos			= 103964;
local _ChaosWave			= 124916
local _DarkSoulKnowledge	= 113861;
local _DarkSoulMisery		= 113860;
local _DarkSoulInstability	= 113858;
local _FireAndBrimstone		= 108683;
local _GrimoireDoomguard	= 157900;
local _Cataclysm			= 152108;
local _Felstorm				= 119914;
local _Havoc				= 80240;
local _Conflagrate			= 17962;
local _Incinerate			= 29722;
local _Immolate				= 348;
local _ChaosBolt			= 116858;
local _Shadowburn			= 17877;
local _Soulburn				= 74434;
local _Haunt				= 48181;
local _SoulSwap				= 86121;
local _SummonDoomguard		= 18540;

-- Affliction
local _Agony = 980;
local _Corruption = 172;
local _SiphonLife = 63106;
local _UnstableAffliction = 30108;
local _SoulConduit = 215941;
local _ReapSouls = 216698;
local _DrainSoul = 198590;
local _SoulEffigy = 205178;
local _SeedofCorruption = 27243;
local _SoulHarvest = 196098;
local _WrathofConsumption = 199472;
local _CompoundingHorror = 199282;
local _Contagion = 196105;
local _AbsoluteCorruption = 196103;
local _EmpoweredLifeTap = 235157;
local _SummonFelhunter = 691;
local _DemonicCircle = 48018;
local _DarkPact = 108416;
local _UnendingResolve = 104773;
local _SummonInfernal = 1122;
local _PhantomSingularity = 205179;
local _DeadwindHarvester = 216708;
local _TormentedSouls = 216695;

-- AURAS
local _MoltenCore = 140074;
local _HauntingSpirits = 157698;
-- local _InsidiousCorruption = 243952;
Rotation:
Code: Select all
----------------------------------------------
-- Main rotation: Affliction
----------------------------------------------
function MaxDps.Warlock.Affliction(_, timeShift, currentSpell, gcd, talents)
	local ss = UnitPower('player', SPELL_POWER_SOUL_SHARDS);
	local mana = MaxDps:Mana(0, timeShift);

	local uaCount, uaCd = MaxDps.Warlock.UACount(timeShift);
	
	local doomguard1 = MaxDps:SpellAvailable(_SummonDoomguard, timeShift);
	local doomguard2 = MaxDps:SpellAvailable(_SummonInfernal, timeShift);

	if not talents[_GrimoireofSupremacy] then
		MaxDps:GlowCooldown(_SummonDoomguard, doomguard1);
	end

	if not talents[_GrimoireofSupremacy] then
		MaxDps:GlowCooldown(_SummonInfernal, doomguard2);
	end
	
	if talents[_PhantomSingularity] then
		MaxDps:GlowCooldown(_PhantomSingularity, MaxDps:SpellAvailable(_PhantomSingularity, timeShift));
	end
	
	if mana < 0.2 then
		return _LifeTap;
	end

	if not MaxDps:TargetAura(_Agony, timeShift + 5) then
		return _Agony;
	end

	if talents[_AbsoluteCorruption] then
		local spellName = GetSpellInfo(_Corruption);
		local aura = UnitAura('target', spellName, nil, 'PLAYER|HARMFUL');
		if not aura then
			return _Corruption;
		end
	else
		if not MaxDps:TargetAura(_Corruption, timeShift + 4) then
			return _Corruption;
		end
	end

	if talents[_SiphonLife] and not MaxDps:TargetAura(_SiphonLife, timeShift + 4) then
		return _SiphonLife;
	end

	if ss >= 3 then
		return _UnstableAffliction;
	end

	if MaxDps:PersistentAura(_TormentedSouls) and (not MaxDps:Aura(_DeadwindHarvester, timeShift + 1) and uaCount >= 2) then
		return _ReapSouls;
	end

	return _DrainSoul;
end
[code]

Re: Affliction - Custom by Conky

Posted: 03 Oct 2017, 17:38
by Kaminaris
You dont need to edit files directly, there is option (similar to weak auras) to add your own custom rotation in game: Check this out