| 1234567891011121314151617181920212223242526 |
- local Puppetize = extend(Ability)
- ----------------
- -- Data
- ----------------
- Puppetize.cooldown = 30
- ----------------
- -- Behavior
- ----------------
- function Puppetize:activate()
- self.timer = love.math.random() * self.cooldown
- end
- function Puppetize:use()
- if self.unit.target and isa(self.unit.target, Unit) then
- self.unit.target.buffs:add('puppetize', {timer = 3, owner = self.unit})
- self.unit.animation:set('puppetize')
- self.unit.channeling = true
- self.timer = self.cooldown
- end
- end
- return Puppetize
|