Guest User

Untitled

a guest
Oct 17th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.08 KB | None | 0 0
  1. function RogueScout(arg1)
  2.    local Skill = {}
  3.    local i = 0
  4.    local energy = UnitMana("player")
  5.    local focus = UnitSkill("player")
  6.    local friendly = (not UnitCanAttack("player","target"))
  7.    local tbuff = BuffList("target")
  8.    local pbuff = BuffList("player")
  9.    
  10.    i=i+1; Skill[i] = { ["name"] = "Мастер сражений",    ["use"] = ((not string.find(pbuff, "Мастер сражений")) and (focus >= 30)) }
  11.    i=i+1; Skill[i] = { ["name"] = "Атака в рану",   ["use"] = ((not friendly) and (energy >= 35) and string.find(tbuff, "Тяжелое ранение")) }
  12.    i=i+1; Skill[i] = { ["name"] = "Подлый удар",    ["use"] = ((not friendly) and (energy >= 30) and string.find(tbuff, "Кровотечение")) }
  13.    i=i+1; Skill[i] = { ["name"] = "Теневой удар",   ["use"] = ((not friendly) and (energy >= 20)) }
  14.    i=i+1; Skill[i] = { ["name"] = "Вампирские стрелы",   ["use"] = ((not friendly) and (focus >= 30)) }
  15.    i=i+1; Skill[i] = { ["name"] = "Выстрел", ["use"] = (not friendly)}
  16.  
  17.    MyCombat(Skill,arg1)
  18. end
Add Comment
Please, Sign In to add comment