fix drawing spell preview after the end of a turn
This commit is contained in:
parent
de24808a82
commit
cd8d2768e0
@ -24,6 +24,10 @@ function behavior:endCast()
|
||||
end
|
||||
|
||||
function behavior:update(dt)
|
||||
if Tree.level.selector:deselected() then
|
||||
self.state = "idle"
|
||||
self.cast = nil
|
||||
end
|
||||
if self.cast and self.state == "casting" then self.cast:update(self.owner, dt) end
|
||||
end
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ end
|
||||
---
|
||||
--- Если в очереди на ход больше никого нет, заканчиваем раунд
|
||||
function turnOrder:next()
|
||||
Tree.level.selector.id = nil
|
||||
Tree.level.selector:select(nil)
|
||||
self.actedQueue:insert(self.current)
|
||||
local next = self.pendingQueue:peek()
|
||||
if not next then return self:endRound() end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user