Advertisement
Guest User

AfflcitonLockFix

a guest
Jun 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. /run function canlifetap(thp,tmap)if UnitHealth("player")/UnitHealthMax("player")>thp and UnitMana("player")/UnitManaMax("player")<tmap then return true else return false end end
  2. /run function castSpell(spell) if GetSpellCooldown(spell) ==0 then if IsUsableSpell(spell) then CastSpellByName(spell)end end end
  3. /run function castdeBuff(spell,buff,ttrt) local _,_,_,_,_,_,eH,_=UnitDebuff("target",buff) if eH==nil then eH=0 end if eH-GetTime()<2 then castSpell(spell) end end
  4. /run function castBuff(spell,buff,ttrt) local _,_,_,_,_,_,eH,_=UnitBuff("target",buff) if eH==nil then eH=0 end if eH-GetTime()<2 then castSpell(spell) end end
  5. /run function useproc(spell,proc,stack)local _,_,_,count=UnitBuff("player",proc)if count == stack then castSpell(spell) end end
  6. /run function castspellCh(spell) local ChSpell=UnitChannelInfo("player") if ChSpell==spell then print(ChSpell) else castSpell(spell) end end
  7.  
  8. /run castBuff("haunt","haunt",2)
  9. /run castdeBuff("Unstable Affliction","Unstable Affliction",2)
  10. /run if canlifetap(.5,.4) == true then castSpell("Life Tap") end
  11. /run castdeBuff("Corruption","Corruption",2)
  12. /run castdeBuff("Curse of Agony","Curse of Agony",2)
  13. /run useproc("Shadow Bolt","Shadow Trance",1)
  14. /run if UnitHealth("target")/UnitHealthMax("target")<0.24 then castspellCh("Drain Soul") else castSpell("Shadow Bolt") end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement