Mage arcane 7.3

3 posts Page 1 of 1
eiluj
Posts: 2
Joined: 25 Nov 2017, 18:23


Thx for this addons, i have intialize this for me on arcane :
  1. function(_, timeShift, currentSpell, gcd)
  2.    
  3.     -- Ressource
  4.     local arcaneCharge = UnitPower('player', SPELL_POWER_ARCANE_CHARGES);
  5.     local mana = UnitMana("player");
  6.     local maxMana = UnitManaMax("player");
  7.    
  8.     -- Offensive Abilities
  9.     local _MarkOfAluneth  = 224968;
  10.     local _Arcane_Explosion = 1449;
  11.     local _Arcane_Missiles  = 5143;
  12.     local _Arcane_Barrage   = 44425;
  13.     local _Arcane_Blast     = 30451;
  14.    
  15.     -- Offensive Cooldowns
  16.     local _Time_Warp = 80353 ;
  17.     local _Arcance_Power = 12042;
  18.     local _Presence_of_Mind = 205025;
  19.    
  20.     -- Defensive Cooldowns
  21.     local _Ice_Block = 45438;
  22.     local _Prismatic_Barrier = 234550;
  23.    
  24.     -- talent
  25.     local _MirrorImage = 55342;
  26.     local _RuneofPower = 116011;
  27.  
  28.     -- Utils
  29.     local _Evocation = 12051;
  30.    
  31.     local hasAura, stackCount = MaxDps:PersistentAura(208081);
  32.     local freeBlast = hasAura;
  33.    
  34.     local hasAura, stackCount = MaxDps:PersistentAura(79683);
  35.     local maCharge = 0;
  36.     if hasAura then
  37.         maCharge = stackCount;
  38.     end
  39.    
  40.    
  41.      -- _Arcance_Power
  42.     -- MaxDps:GlowCooldown(_Arcance_Power,   MaxDps:SpellAvailable(_Arcance_Power, timeShift));
  43.     -- _Presence_of_Mind
  44.     -- MaxDps:GlowCooldown(_Presence_of_Mind,   MaxDps:SpellAvailable(_Presence_of_Mind, timeShift));
  45.     -- _Ice_Block
  46.     MaxDps:GlowCooldown(_Ice_Block,   MaxDps:SpellAvailable(_Ice_Block, timeShift));
  47.     -- _Prismatic_Barrier
  48.     MaxDps:GlowCooldown(_Prismatic_Barrier,   MaxDps:SpellAvailable(_Prismatic_Barrier, timeShift));
  49.     -- rune
  50.     -- MaxDps:GlowCooldown(_RuneofPower, talents[_RuneofPower] and MaxDps:SpellAvailable(_RuneofPower, timeShift));
  51.     -- image
  52.     -- MaxDps:GlowCooldown(_MirrorImage, talents[_MirrorImage] and MaxDps:SpellAvailable(_MirrorImage, timeShift));
  53.    
  54.     -- legendary buff
  55.     if freeBlast then
  56.         return _Arcane_Blast;
  57.     end
  58.    
  59.     -- burn
  60.     if MaxDps:SpellAvailable(_Evocation, timeShift) then   
  61.         -- Arcane Missiles (at three stacks)
  62.         if maCharge >= 3 then
  63.             return _Arcane_Missiles;
  64.         end
  65.        
  66.  
  67.         -- Mark of Aluneth
  68.         if MaxDps:SpellAvailable(_MarkOfAluneth, timeShift) then
  69.             return _MarkOfAluneth;
  70.         end
  71.        
  72.         if mana < 200000 then
  73.             return _Evocation;
  74.         end
  75.        
  76.         -- Build to four Arcane Charges ( Arcane Blast x 4, Charged Up, etc)
  77.         if MaxDps:SpellAvailable(_Presence_of_Mind, timeShift) then
  78.             if arcaneCharge <= 0 or not MaxDps:SpellAvailable(_Arcane_Barrage, timeShift) then
  79.                 return _Presence_of_Mind;
  80.             else
  81.                 return _Arcane_Barrage;
  82.             end
  83.         end
  84.        
  85.         -- on est ici à arcaneCharge = 4
  86.         if arcaneCharge  > 3 then
  87.             -- Rune of Power (talent)      
  88.             -- Mirror Image (talent)       
  89.             -- Arcane Power
  90.             MaxDps:GlowCooldown(_Arcance_Power,   MaxDps:SpellAvailable(_Arcance_Power, timeShift));
  91.            
  92.             -- Arcane Missiles (at four Arcane Charges)
  93.             if maCharge > 0 then
  94.                 return _Arcane_Missiles;
  95.             end
  96.         end
  97.         -- Nether Tempest (talent) (at four Arcane Charges)
  98.         -- Arcane Blast
  99.         return _Arcane_Blast;
  100.         -- Supernova (talent)
  101.     end
  102.    
  103.     --concerve
  104.     -- Stay at a high enough mana level that you will be near to 100% when Evocation comes off of cooldown. In practice this will mean hovering between 100% and around 50%. At early gear levels you will probably need to Arcane Barrage before reaching four Arcane Charge stacks.
  105.     -- Arcane Missiles (at four Arcane Charges or three Arcane Missiles stacks)
  106.     if ( arcaneCharge > 3 and maCharge > 0 ) or  ( maCharge >= 3 ) then
  107.         return _Arcane_Missiles;
  108.     end
  109.    
  110.     if maCharge > 0 and MaxDps:SpellAvailable(_Presence_of_Mind, timeShift) then
  111.             if arcaneCharge <= 0 or not MaxDps:SpellAvailable(_Arcane_Barrage, timeShift) then
  112.                 return _Presence_of_Mind;
  113.             else
  114.                 return _Arcane_Barrage;
  115.             end
  116.     end
  117.    
  118.    
  119.     -- Arcane Barrage (if no Arcane Missiles stacks)
  120.     if MaxDps:SpellAvailable(_Arcane_Barrage, timeShift) and maCharge < 2 and arcaneCharge >= 3 then
  121.         return _Arcane_Barrage;
  122.     end
  123.    
  124.     -- Supernova (talent)
  125.     -- _MarkOfAluneth
  126.     if MaxDps:SpellAvailable(_MarkOfAluneth, timeShift) and (maxMana*0.65) < mana then
  127.         return _MarkOfAluneth;
  128.     end
  129.        
  130.     -- Nether Tempest (talent) (at four Arcane Charges)
  131.     -- Arcane Blast
  132.     if MaxDps:SpellAvailable( _Arcane_Blast,timeShift) then
  133.         return _Arcane_Blast;
  134.     end
  135.    
  136.            
  137.     return 133;
  138. end
Kaminaris
Site Admin
Posts: 297
Joined: 25 Jun 2017, 03:45


Can I include this in base class module?
eiluj
Posts: 2
Joined: 25 Nov 2017, 18:23


y of course
3 posts Page 1 of 1
drogie łóżka stolik kawowy stół dębowy rozkładany