Skip to content
Snippets Groups Projects
Commit 8c4a96be authored by DarkGod's avatar DarkGod
Browse files

Fixed merchatn artifact offering for antimagic characters when browsing the misc category

parent 660bcb15
No related branches found
No related tags found
No related merge requests found
......@@ -131,11 +131,13 @@ local maker_list = function()
end
local o, ok
local tries = 100
repeat
o = game.zone:makeEntity(game.level, "object", {name=name, ignore_material_restriction=true, no_tome_drops=true, ego_filter={keep_egos=true, ego_chance=-1000}}, nil, true)
if o then ok = true end
if o and o.power_source and player:attr("forbid_arcane") and o.power_source.arcane then ok = false end
until ok
if o and o.power_source and player:attr("forbid_arcane") and o.power_source.arcane then ok = false o = nil end
tries = tries - 1
until ok or tries < 0
if o then
if not dname then dname = o:getName{force_id=true, do_color=true, no_count=true}
else dname = "#B4B4B4#"..o:getDisplayString()..dname.."#LAST#" 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