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

Prevent Bone Shield from bugging under some werid cirscumstances

git-svn-id: http://svn.net-core.org/repos/t-engine4@1876 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0be621f4
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,8 @@ newTalent{
direct_hit = true,
absorb = function(self, t, p)
game.logPlayer(self, "Your bone shield absorbs the damage!")
self:removeParticles(table.remove(p.particles))
local pid = table.remove(p.particles)
if pid then self:removeParticles(pid) end
if #p.particles <= 0 then
self:forceUseTalent(t.id, {ignore_energy=true})
end
......
......@@ -43,7 +43,8 @@ return {
},
actor = {
class = "engine.generator.actor.Random",
nb_npc = {24, 34},
nb_npc = {29, 39},
filters = { {max_ood=10}, },
},
object = {
class = "engine.generator.object.Random",
......
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