Skip to content
Snippets Groups Projects
Commit 25484199 authored by Alex Ksandra's avatar Alex Ksandra
Browse files

PlayerRun now checks for bad stuff after making a step, too, to alert player in more cases.

parent b5b22675
No related branches found
No related tags found
No related merge requests found
......@@ -224,7 +224,14 @@ function _M:runStep()
if not self.running then return false end
if not self.running.busy then
self.running.cnt = self.running.cnt + 1
elseif self.running.busy.no_energy then
end
-- Check after running to spot actors that may slip away from us; we still won't get a turn but we'll get the next one
ret, msg = self:runCheck()
if not ret then
self:runStop(msg)
return false
end
if self.running.busy and self.running.busy.no_energy then
return self:runStep()
end
return true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment