chore: forgot something again woops

This commit is contained in:
Kazhnuz 2022-05-20 19:11:48 +02:00
parent 5368b94f88
commit b4f7cdb44b

View file

@ -13,8 +13,13 @@ FighterParent:implement(Movements)
FighterParent:implement(Sprites) FighterParent:implement(Sprites)
FighterParent:implement(Abstract) FighterParent:implement(Abstract)
function FighterParent:new(world, x, y, w, h, d, fighterType) function FighterParent:new(world, x, y, fighterType)
FighterParent.super.new(self, world, fighterType, x, y, 0, w, h, d, true) self.abstract = self:getAbstract()
local w, h, d = self:getFighterHitbox()
local z = self:getStartZ()
FighterParent.super.new(self, world, fighterType, x, y, z, w, h, d, true)
self.defaultDir = self.defaultDir or -1 self.defaultDir = self.defaultDir or -1
self:initMovements() self:initMovements()
self:initActions() self:initActions()