new factions cannot guard

This commit is contained in:
Enno Rehling 2017-12-22 20:07:30 +01:00
parent 73f49ec90a
commit 77cf7f6876
1 changed files with 5 additions and 0 deletions

View File

@ -1011,6 +1011,7 @@ end
function test_demons_using_mallornlance()
-- bug 2392
set_rule("skillchange.demon.up", "0")
set_rule("NewbieImmunity", "0")
local r = region.create(0, 0, "plain")
local f = faction.create('goblin')
local u = unit.create(f, r, 1, 'demon')
@ -1019,5 +1020,9 @@ function test_demons_using_mallornlance()
u:add_item('mallornlance', 1)
u:add_order('BEWACHE')
process_orders()
if not u.guard then
init_reports()
write_report(f)
end
assert_true(u.guard)
end