Skip to content
Snippets Groups Projects
Commit 2d6752b5 authored by DarkGod's avatar DarkGod
Browse files

Orbs of Command can not be re-used on pedestrals to summons bosses duplicates

parent 18c8f21a
No related branches found
No related tags found
No related merge requests found
......@@ -1461,7 +1461,7 @@ function _M:useCommandOrb(o, x, y)
end
if g.orb_command then
g.orb_command:special(self)
g.orb_command:special(self, g)
if not g.orb_command.continue then return end
end
g.orbed = true
......
......@@ -37,7 +37,8 @@ local orb_activate = function(self, x, y, who, act, couldpass)
return false
end
local orb_summon = function(self, who)
local orb_summon = function(self, who, g)
if g and g.orbed then return end
local filter = self.summon
local npc = game.zone:makeEntity(game.level, "actor", filter, nil, true)
local nx, ny = util.findFreeGrid(who.x, who.y, 10, true, {[engine.Map.ACTOR]=true})
......
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