diff --git a/sonic-radiance.love/game/modules/subgames/world/actors/fighters/parent.lua b/sonic-radiance.love/game/modules/subgames/world/actors/fighters/parent.lua index 66efe6c..e5cff40 100644 --- a/sonic-radiance.love/game/modules/subgames/world/actors/fighters/parent.lua +++ b/sonic-radiance.love/game/modules/subgames/world/actors/fighters/parent.lua @@ -13,8 +13,13 @@ FighterParent:implement(Movements) FighterParent:implement(Sprites) FighterParent:implement(Abstract) -function FighterParent:new(world, x, y, w, h, d, fighterType) - FighterParent.super.new(self, world, fighterType, x, y, 0, w, h, d, true) +function FighterParent:new(world, x, y, fighterType) + 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:initMovements() self:initActions()