diff --git a/core/scripts/tests/common.lua b/core/scripts/tests/common.lua index 50d45701f..f20d48a10 100755 --- a/core/scripts/tests/common.lua +++ b/core/scripts/tests/common.lua @@ -52,10 +52,10 @@ function test_elvenhorse_requires_riding_5() local r = region.create(0, 0, "plain") region.create(1, 0, "plain") local goal = region.create(2, 0, "plain") - local f = faction.create("noreply@eressea.de", "human", "de") + local f = faction.create("noreply@eressea.de", "halfling", "de") local u = unit.create(f, r, 1) u:add_item("elvenhorse", 1) - u:set_skill("riding", 5) + u:set_skill("riding", 6)-- halfling has -1 modifier u:clear_orders() u:add_order("NACH O O") process_orders() @@ -66,10 +66,10 @@ function test_cannot_ride_elvenhorse_without_enough_skill() local r = region.create(0, 0, "plain") local goal = region.create(1, 0, "plain") region.create(2, 0, "plain") - local f = faction.create("noreply@eressea.de", "human", "de") + local f = faction.create("noreply@eressea.de", "halfling", "de") local u = unit.create(f, r, 1) u:add_item("elvenhorse", 1) - u:set_skill("riding", 4) + u:set_skill("riding", 5) -- halfling has -1 modifier u:clear_orders() u:add_order("NACH O O") process_orders()