Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function()
- local Mana=UnitPower("player",SPELL_POWER_MANA)
- local ManaMax=UnitPowerMax("player",SPELL_POWER_MANA)
- local ManaPercent=Mana/ManaMax
- local ArcaneCharges=UnitPower("player", SPELL_POWER_ARCANE_CHARGES)
- local EvocCD=0
- local start,duration,enable=GetSpellCooldown(12051)
- if start~=0 then EvocCD=duration-GetTime()+start end
- local HasBuff=function(BuffName)
- return UnitBuff("player",BuffName)~=nil
- end
- return (ArcaneCharges == 4
- and (Mana / ManaMax) < (1.25 * EvocCD / 90)
- and (Mana / ManaMax) < 0.75
- and HasBuff("Arcane Power") == false
- and HasBuff("Rune of Power") == false)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement