Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vn.cycler.onoff = false
- vn.cycler.queuedAttack = 'nil'
- vn.cycler.nextAttack = 'confound'
- --Alias's will change nextAttack and then fire this function--
- vn.cycler.checkAttack = function(check)
- if vn.cycler.nextAttack == vn.cycler.queuedAttack then
- return true
- else vn.cycler.sendCommand()
- end
- end
- --Trigger this function to balance recovery--
- vn.cycler.attackFired = function(reset)
- vn.cycler.queuedAttack = "nil"
- vn.cycler.nextAttack = "confound"
- do vn.cycler.sendCommand()
- end
- end
- --Hopefully correctly queues next attack--
- vn.cycler.sendCommand = function(fire)
- if vn.cycler.onoff then
- for k,v in pairs (vn.cycler.abilities) do
- local ability = vn.cycler.abilities[k]
- if ability == vn.cycler.nextAttack then
- send(vn.cycler.abilites[v] .." " ..target)
- vn.cycler.queuedAttack = ability
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement