mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-22 21:46:51 +02:00
This commit is contained in:
@@ -252,6 +252,8 @@ function EvolutionAnim:setPhase(phase)
|
||||
full = self.full,
|
||||
})
|
||||
end
|
||||
local stack = self.game and self.game.stack
|
||||
if stack and stack.top and stack:top() == self then stack:pop() end
|
||||
return
|
||||
end
|
||||
end
|
||||
@@ -321,8 +323,18 @@ end
|
||||
function EvolutionAnim:update(_dt)
|
||||
local input = self.game and self.game.input
|
||||
local phase = self.phase
|
||||
-- onDone has already fired; the caller pops this state on its own beat.
|
||||
if phase == "done" then return end
|
||||
-- onDone has already fired.
|
||||
if phase == "done" then
|
||||
local stack = self.game and self.game.stack
|
||||
if stack and stack.top and stack:top() == self then stack:pop() end
|
||||
return
|
||||
end
|
||||
|
||||
if phase == "waitingLearn" then
|
||||
local stack = self.game and self.game.stack
|
||||
if stack and stack.top and stack:top() == self then self:nextLearn() end
|
||||
return
|
||||
end
|
||||
|
||||
if phase == "flash" then
|
||||
return self:updateFlash(input)
|
||||
|
||||
Reference in New Issue
Block a user