CLOSES #1367, CLOSES #1585, CLOSES #1611, CLOSES #1612, CLOSES #1636, CLOSES #1638, CLOSES #1641

This commit is contained in:
bryanthaboi
2026-08-21 07:14:24 -04:00
parent c11c762f15
commit 8c0d0ace4d
15 changed files with 174 additions and 52 deletions
+14 -2
View File
@@ -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)