20 lines
596 B
Lua
20 lines
596 B
Lua
local ActionParent = require "scenes.battlesystem.controllers.fighters.systems.actions.parent"
|
|
local ActionMock = ActionParent:extend()
|
|
|
|
local ChoregraphySystem = require "scenes.battlesystem.controllers.fighters.systems.choregraphy"
|
|
|
|
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
|