2021-08-15 16:50:53 +02:00
|
|
|
local ActionParent = require "scenes.battlesystem.fighters.character.actions.parent"
|
2020-08-03 17:59:44 +02:00
|
|
|
local ActionMock = ActionParent:extend()
|
|
|
|
|
|
|
|
function ActionMock:new(fighter, data)
|
|
|
|
ActionMock.super.new(self, fighter)
|
|
|
|
self.data = data
|
|
|
|
end
|
|
|
|
|
|
|
|
function ActionMock:needTarget()
|
|
|
|
return (self.data.targetNumber == 1), self.data.targetEnnemies
|
|
|
|
end
|
|
|
|
|
|
|
|
function ActionMock:startAction()
|
|
|
|
core.debug:print("cbs/action", "Starting mock action")
|
|
|
|
self:loadChoregraphyFromSkill(self.data)
|
|
|
|
end
|
|
|
|
|
|
|
|
return ActionMock
|