sonic-radiance/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/actions/defend.lua
2021-03-13 15:49:21 +01:00

20 lines
544 B
Lua

local ActionParent = require "scenes.battlesystem.controllers.fighters.systems.actions.parent"
local DefendAction = ActionParent:extend()
function DefendAction:new(fighter)
DefendAction.super.new(self, fighter)
end
function DefendAction:needTarget()
return false, false
end
function DefendAction:startAction()
core.debug:print("cbs/action", "Starting defend action")
self.fighter.isDefending = true
self.fighter.actor:changeAnimation("defend")
self.fighter.actor.isDefending = true
self:finishAction()
end
return DefendAction