forked from github/server
es wird immer der erste lange Befehl ausgefuehrt.
This commit is contained in:
parent
a019accad3
commit
a977e853b4
|
@ -41,8 +41,8 @@ function test_destroy_is_long()
|
||||||
local u = unit.create(faction.create("human", "one@example.com", "de"), r1, 10)
|
local u = unit.create(faction.create("human", "one@example.com", "de"), r1, 10)
|
||||||
u.building = building.create(u.region, "castle")
|
u.building = building.create(u.region, "castle")
|
||||||
u:clear_orders()
|
u:clear_orders()
|
||||||
u:add_order("LERNE Unterhaltung")
|
|
||||||
u:add_order("ZERSTOERE " .. itoa36(u.building.id))
|
u:add_order("ZERSTOERE " .. itoa36(u.building.id))
|
||||||
|
u:add_order("LERNE Unterhaltung")
|
||||||
process_orders()
|
process_orders()
|
||||||
assert_equal(0, u:get_skill("entertainment"))
|
assert_equal(0, u:get_skill("entertainment"))
|
||||||
assert_equal(nil, u.building)
|
assert_equal(nil, u.building)
|
||||||
|
|
Loading…
Reference in New Issue