forked from github/server
new factions cannot guard
This commit is contained in:
parent
73f49ec90a
commit
77cf7f6876
|
@ -1011,6 +1011,7 @@ end
|
||||||
function test_demons_using_mallornlance()
|
function test_demons_using_mallornlance()
|
||||||
-- bug 2392
|
-- bug 2392
|
||||||
set_rule("skillchange.demon.up", "0")
|
set_rule("skillchange.demon.up", "0")
|
||||||
|
set_rule("NewbieImmunity", "0")
|
||||||
local r = region.create(0, 0, "plain")
|
local r = region.create(0, 0, "plain")
|
||||||
local f = faction.create('goblin')
|
local f = faction.create('goblin')
|
||||||
local u = unit.create(f, r, 1, 'demon')
|
local u = unit.create(f, r, 1, 'demon')
|
||||||
|
@ -1019,5 +1020,9 @@ function test_demons_using_mallornlance()
|
||||||
u:add_item('mallornlance', 1)
|
u:add_item('mallornlance', 1)
|
||||||
u:add_order('BEWACHE')
|
u:add_order('BEWACHE')
|
||||||
process_orders()
|
process_orders()
|
||||||
|
if not u.guard then
|
||||||
|
init_reports()
|
||||||
|
write_report(f)
|
||||||
|
end
|
||||||
assert_true(u.guard)
|
assert_true(u.guard)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue