2021-08-15 16:34:36 +02:00
|
|
|
local StepParent = require "scenes.battlesystem.choregraphy.step.parent"
|
2020-07-25 10:24:32 +02:00
|
|
|
local SendDamage = StepParent:extend()
|
|
|
|
|
|
|
|
local maputils = require "scenes.battlesystem.utils"
|
|
|
|
|
|
|
|
function SendDamage:new(system, args)
|
|
|
|
SendDamage.super.new(self, system, args)
|
|
|
|
end
|
|
|
|
|
|
|
|
function SendDamage:start()
|
|
|
|
local power = self.arguments.power
|
|
|
|
local isSpecial = self.arguments.isSpecial
|
2021-05-15 15:01:02 +02:00
|
|
|
local type = self.arguments.type
|
|
|
|
local element = self.arguments.element
|
2020-07-25 10:24:32 +02:00
|
|
|
|
2021-05-15 15:01:02 +02:00
|
|
|
self.choregraphy:sendDamage(power, type, element, isSpecial)
|
2020-07-25 10:24:32 +02:00
|
|
|
self:finish()
|
|
|
|
end
|
|
|
|
|
|
|
|
return SendDamage
|