From 879d791a60b1f57dc1bd37e9e938964eff872e7e Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 2 Oct 2016 14:30:27 +0200 Subject: [PATCH] seems like I forgot to commit this change, which is making the test fail. why only on my mac, though? --- scripts/eressea/xmasitems.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/eressea/xmasitems.lua b/scripts/eressea/xmasitems.lua index b31691d72..a05e023b8 100644 --- a/scripts/eressea/xmasitems.lua +++ b/scripts/eressea/xmasitems.lua @@ -62,9 +62,7 @@ end function use_snowman(u, amount) if amount>0 and u.region.terrain == "glacier" then - local man = unit.create(u.faction, u.region) - man.race = "snowman" - man.number = amount + local man = unit.create(u.faction, u.region, amount, "snowman") return amount end return -4