From 0853b65afb8a6e5d0c905caabde01e8a7cdd1e3d Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 7 Jan 2024 10:43:05 +0100 Subject: [PATCH] =?UTF-8?q?Bei=20Bergw=C3=A4chtern=20fehlte=20ein=20noatta?= =?UTF-8?q?ck=20Flag.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- res/e3a/races.xml | 2 +- res/eressea/races.xml | 2 +- scripts/tests/shared/spells.lua | 10 ++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/res/e3a/races.xml b/res/e3a/races.xml index 90f311757..ad2e6c1a9 100644 --- a/res/e3a/races.xml +++ b/res/e3a/races.xml @@ -651,7 +651,7 @@ - + diff --git a/res/eressea/races.xml b/res/eressea/races.xml index ba268888f..20f10e376 100644 --- a/res/eressea/races.xml +++ b/res/eressea/races.xml @@ -648,7 +648,7 @@ - + diff --git a/scripts/tests/shared/spells.lua b/scripts/tests/shared/spells.lua index b865252f8..189f761b7 100644 --- a/scripts/tests/shared/spells.lua +++ b/scripts/tests/shared/spells.lua @@ -183,3 +183,13 @@ function test_confusion_and_panic() end process_orders() end + +function test_mountainguards_cant_attack() + local r = region.create(0, 0, 'plain') + local u = unit.create(faction.create('human'), r, 1) + local f = faction.create('human') + local ug = unit.create(f, r, 1, "mountainguard") + ug:add_order("ATTACKIERE " .. itoa36(u.id)) + process_orders() + assert_equal('race_no_attack', f.messages[1]) +end