Skip to content
Snippets Groups Projects
Commit 484ac3e6 authored by dg's avatar dg
Browse files

fix bone shield

git-svn-id: http://svn.net-core.org/repos/t-engine4@6736 51575b47-30f0-44d4-a5cc-537603b46e54
parent 45280320
No related branches found
No related tags found
No related merge requests found
......@@ -138,12 +138,12 @@ newTalent{
end
end,
absorb = function(self, t, p)
game.logPlayer(self, "Your bone shield absorbs the damage!")
game:onTickEnd(function() -- Happens on tick end to avoid problems
local pid = table.remove(p.particles)
if pid then self:removeParticles(pid) end
end)
return #p.particles > 0
local pid = table.remove(p.particles)
if pid then
game.logPlayer(self, "Your bone shield absorbs the damage!")
self:removeParticles(pid)
end
return pid
end,
activate = function(self, t)
local nb = math.ceil(self:getTalentLevel(t))
......
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