forked from github/server
develop branch gives different error message for greatbow.
This commit is contained in:
parent
8187530794
commit
5479d94206
|
@ -12,7 +12,7 @@ local function create_faction(race)
|
|||
return faction.create(race, race .. '@example.com', "de")
|
||||
end
|
||||
|
||||
function disable_test_greatbow_needs_elf()
|
||||
function test_greatbow_needs_elf()
|
||||
-- only elves can build a greatbow
|
||||
local r = region.create(0, 0, 'mountain')
|
||||
local f = create_faction('human')
|
||||
|
@ -23,7 +23,7 @@ function disable_test_greatbow_needs_elf()
|
|||
u:add_item('mallorn', 2)
|
||||
u:add_order("MACHE Elfenbogen")
|
||||
turn_process() -- humans cannot do it
|
||||
assert_equal(1, f:count_msg_type("error_cannotmake"))
|
||||
assert_equal(1, f:count_msg_type("error118"))
|
||||
assert_equal(0, u:get_item('greatbow'))
|
||||
assert_equal(2, u:get_item('mallorn'))
|
||||
|
||||
|
|
Loading…
Reference in New Issue