Skip to content
Snippets Groups Projects
Commit 5b8f16dd authored by dg's avatar dg
Browse files

Prevent a bug when using easy/normal mode resurrects in some corner cases

git-svn-id: http://svn.net-core.org/repos/t-engine4@2355 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0f0080ba
No related branches found
No related tags found
No related merge requests found
......@@ -80,9 +80,10 @@ end
--- Restore resources
function _M:restoreResources(actor)
actor:resetToFull()
actor.energy.value = game.energy_to_act
if actor.resetToFull then
actor:resetToFull()
actor.energy.value = game.energy_to_act
end
end
--- Basic resurrection
......
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