Advertisement
Binkenstein

ABarr Single Phase Warning

Oct 7th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. function()
  2.     local Mana=UnitPower("player",SPELL_POWER_MANA)
  3.     local ManaMax=UnitPowerMax("player",SPELL_POWER_MANA)
  4.     local ManaPercent=Mana/ManaMax
  5.    
  6.     local ArcaneCharges=UnitPower("player", SPELL_POWER_ARCANE_CHARGES)
  7.    
  8.     local EvocCD=0
  9.     local start,duration,enable=GetSpellCooldown(12051)
  10.     if start~=0 then EvocCD=duration-GetTime()+start end
  11.    
  12.     local HasBuff=function(BuffName)
  13.         return UnitBuff("player",BuffName)~=nil
  14.     end
  15.    
  16.     return (ArcaneCharges == 4
  17.         and (Mana / ManaMax) < (1.25 * EvocCD / 90)
  18.         and (Mana / ManaMax) < 0.75
  19.         and HasBuff("Arcane Power") == false
  20.         and HasBuff("Rune of Power") == false)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement