From 4ab2e72231e7dd243caea9d82d9a3ad00d2949d9 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 25 Jul 2020 11:38:59 +0200 Subject: [PATCH] fix: make nil action and choregraphy when they are finished --- .../scenes/battlesystem/controllers/fighters/character.lua | 1 + .../battlesystem/controllers/fighters/systems/actions/parent.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/character.lua b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/character.lua index 581bbef..0abc3ce 100644 --- a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/character.lua +++ b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/character.lua @@ -109,6 +109,7 @@ function HeroFighter:goBackToMenu() end function HeroFighter:finishAction() + self.action = nil self:setInactive() end diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/actions/parent.lua b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/actions/parent.lua index b21080f..d1f6c5f 100644 --- a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/actions/parent.lua +++ b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/actions/parent.lua @@ -40,6 +40,7 @@ function ActionParent:start() end function ActionParent:choregraphyEnded() + self.choregraphy = nil self:finishAction() end