Affliction - Original

3 posts Page 1 of 1
Kaminaris
Site Admin
Posts: 124
Joined: 25 Jun 2017, 03:45


Original Affliction Rotation

Spell list:
  1. local _Agony = 980;
  2. local _Corruption = 172;
  3. local _SiphonLife = 63106;
  4. local _UnstableAffliction = 30108;
  5. local _SoulConduit = 215941;
  6. local _ReapSouls = 216698;
  7. local _DrainSoul = 198590;
  8. local _SoulEffigy = 205178;
  9. local _SeedofCorruption = 27243;
  10. local _SoulHarvest = 196098;
  11. local _WrathofConsumption = 199472;
  12. local _CompoundingHorror = 199282;
  13. local _Contagion = 196105;
  14. local _AbsoluteCorruption = 196103;
  15. local _EmpoweredLifeTap = 235157;
  16. local _SummonFelhunter = 691;
  17. local _DemonicCircle = 48018;
  18. local _DarkPact = 108416;
  19. local _UnendingResolve = 104773;
  20. local _SummonInfernal = 1122;
  21. local _PhantomSingularity = 205179;
  22. local _DeadwindHarvester = 216708;
  23. local _TormentedSouls = 216695;
Rotation:
  1. function MaxDps.Warlock.Affliction(_, timeShift, currentSpell, gcd, talents)
  2.     local ss = UnitPower('player', SPELL_POWER_SOUL_SHARDS);
  3.     local mana = MaxDps:Mana(0, timeShift);
  4.  
  5.     local uaCount, uaCd = MaxDps.Warlock.UACount(timeShift);
  6.  
  7.     if talents[_PhantomSingularity] then
  8.         MaxDps:GlowCooldown(_PhantomSingularity, MaxDps:SpellAvailable(_PhantomSingularity, timeShift));
  9.     end
  10.  
  11.     if mana < 0.2 then
  12.         return _LifeTap;
  13.     end
  14.  
  15.     if not MaxDps:TargetAura(_Agony, timeShift + 5) then
  16.         return _Agony;
  17.     end
  18.  
  19.     if talents[_AbsoluteCorruption] then
  20.         local spellName = GetSpellInfo(_Corruption);
  21.         local aura = UnitAura('target', spellName, nil, 'PLAYER|HARMFUL');
  22.         if not aura then
  23.             return _Corruption;
  24.         end
  25.     else
  26.         if not MaxDps:TargetAura(_Corruption, timeShift + 4) then
  27.             return _Corruption;
  28.         end
  29.     end
  30.  
  31.     if talents[_SiphonLife] and not MaxDps:TargetAura(_SiphonLife, timeShift + 4) then
  32.         return _SiphonLife;
  33.     end
  34.  
  35.     if ss >= 3 then
  36.         return _UnstableAffliction;
  37.     end
  38.  
  39.     if MaxDps:PersistentAura(_TormentedSouls) and (not MaxDps:Aura(_DeadwindHarvester, timeShift + 1) and uaCount >= 2) then
  40.         return _ReapSouls;
  41.     end
  42.  
  43.     return _DrainSoul;
  44. end
Hsgames
Posts: 3
Joined: 18 Nov 2017, 13:49


I tried inputting this code into the Maxdps addon like how the pictures and it shows but it keeps coming up with an error "Failed to load addon".

Any chance when Warlock addon is updated the Affliction feature could be added. Thanks.
Kaminaris
Site Admin
Posts: 124
Joined: 25 Jun 2017, 03:45


That is the original rotation, it requires some copy pasting before inputting it in maxdps as custom rotation, see this: viewtopic.php?f=4&t=4

However you will gain absolutely nothing by pasting it as custom rotation because:
original rotation means it is already exactly like this in warlock class module.
3 posts Page 1 of 1
drogie łóżka stolik kawowy stół dębowy rozkładany