Advertisement
Guest User

lockheal

a guest
Jun 20th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 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.  
  3. /run function castSpell(spell) if GetSpellCooldown(spell) ==0 then if IsUsableSpell(spell) then CastSpellByName(spell)end end end
  4.  
  5. /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
  6.  
  7. /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
  8. /run function useproc(spell,proc,stack)local _,_,_,count=UnitBuff("player",proc)if count == stack then castSpell(spell) end end
  9.  
  10. /run function castspellCh(spell) local ChSpell=UnitChannelInfo("player") if ChSpell==spell then else castSpell(spell) end end
  11.  
  12. /run function healSpellCh(spell,thp) if UnitHealth("player")/UnitHealthMax("player")<thp then castspellCh(spell) end end
  13.  
  14.  
  15. /run castBuff("haunt","haunt",2)
  16. /run healSpellCh("Drain Life",.75)
  17. /run castdeBuff("Unstable Affliction","Unstable Affliction",2)
  18. /run if canlifetap(.5,.4) == true then castSpell("Life Tap") end
  19. /run castdeBuff("Corruption","Corruption",2)
  20. /run castdeBuff("Curse of Agony","Curse of Agony",2)
  21. /run useproc("Shadow Bolt","Shadow Trance",1)
  22. /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