2021-08-15 16:50:53 +02:00
|
|
|
local ActionParent = require "scenes.battlesystem.fighters.character.actions.parent"
|
2020-08-05 09:25:38 +02:00
|
|
|
local EnnemyAction = ActionParent:extend()
|
|
|
|
|
|
|
|
function EnnemyAction:new(fighter, skill)
|
2021-05-16 08:48:05 +02:00
|
|
|
self.data = core.datas:get("badskills", skill)
|
2020-08-05 09:25:38 +02:00
|
|
|
EnnemyAction.super.new(self, fighter)
|
|
|
|
end
|
|
|
|
|
|
|
|
function EnnemyAction:needTarget()
|
|
|
|
return (self.data.targetNumber == 1), self.data.targetEnnemies
|
|
|
|
end
|
|
|
|
|
|
|
|
function EnnemyAction:startAction()
|
|
|
|
core.debug:print("cbs/action", "Starting flee action")
|
|
|
|
self:loadChoregraphyFromSkill(self.data)
|
|
|
|
end
|
|
|
|
|
|
|
|
function EnnemyAction:getData()
|
|
|
|
return self.data
|
|
|
|
end
|
|
|
|
|
|
|
|
return EnnemyAction
|