intimidate.lua 311 B

123456789101112
  1. local Intimidate = extend(Ability)
  2. function Intimidate:activate()
  3. local targets = ctx.target:inRange(self.unit, 200, 'enemy', 'unit')
  4. table.each(targets, function(target)
  5. if target.buffs and isa(target, Unit) then
  6. target.buffs:add('intimidate', {timer = 6})
  7. end
  8. end)
  9. end
  10. return Intimidate