From c6a7a1dca6b28139c21a6f9ef127ca854c4b63a8 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Fri, 12 Nov 2010 00:38:20 +0000 Subject: [PATCH] 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 --- game/modules/tome/data/talents/corruptions/bone.lua | 3 ++- game/modules/tome/data/zones/infinite-dungeon/zone.lua | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/game/modules/tome/data/talents/corruptions/bone.lua b/game/modules/tome/data/talents/corruptions/bone.lua index b5c06b71ae..c19bdfc195 100644 --- a/game/modules/tome/data/talents/corruptions/bone.lua +++ b/game/modules/tome/data/talents/corruptions/bone.lua @@ -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 diff --git a/game/modules/tome/data/zones/infinite-dungeon/zone.lua b/game/modules/tome/data/zones/infinite-dungeon/zone.lua index c48e982ac3..4419845403 100644 --- a/game/modules/tome/data/zones/infinite-dungeon/zone.lua +++ b/game/modules/tome/data/zones/infinite-dungeon/zone.lua @@ -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", -- GitLab