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

If a foe fails to apepar in the antimagic arena, it will try again

git-svn-id: http://svn.net-core.org/repos/t-engine4@5472 51575b47-30f0-44d4-a5cc-537603b46e54
parent 8aeab59a
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ add_foe = function(self, next_wave, first, foe_idx)
},
}
foe = rng.table(foes[foe_idx])
local foe = rng.table(foes[foe_idx])
local m = game.zone:makeEntity(game.level, "actor", foe, nil, true)
if m then
......@@ -120,5 +120,8 @@ add_foe = function(self, next_wave, first, foe_idx)
if first then game.logSeen(m, "#VIOLET#A foe is summoned to the arena!")
else game.logSeen(m, "#VIOLET#Another foe is summoned to the arena!") end
end
else
-- err weird, lets try again
return self:add_foe(next_wave, first, foe_idx)
end
end
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