2020-07-20 12:24:26 +02:00
|
|
|
local ActionParent = require "scenes.battlesystem.controllers.fighters.systems.actions.parent"
|
|
|
|
local SkillAction = ActionParent:extend()
|
|
|
|
|
|
|
|
function SkillAction:new(fighter, skill)
|
|
|
|
self.data = game.skills:getSkillData(skill)
|
|
|
|
SkillAction.super.new(self, fighter)
|
|
|
|
end
|
|
|
|
|
|
|
|
function SkillAction:needTarget()
|
|
|
|
return (self.data.targetNumber == 1), self.data.targetEnnemies
|
|
|
|
end
|
|
|
|
|
|
|
|
function SkillAction:startAction()
|
|
|
|
core.debug:print("cbs/action", "Starting flee action")
|
2020-07-24 19:20:48 +02:00
|
|
|
self:loadChoregraphyFromSkill(self.data)
|
2020-07-20 12:24:26 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return SkillAction
|