From 02c249d61e9a1bda77c77551ee9881d176efddd5 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 5 Dec 2015 17:33:41 +0100 Subject: [PATCH] fix not giving christmas trees https://bugs.eressea.de/view.php?id=2171 --- scripts/eressea/xmas.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/eressea/xmas.lua b/scripts/eressea/xmas.lua index 52fcf4c4e..37f2941f1 100644 --- a/scripts/eressea/xmas.lua +++ b/scripts/eressea/xmas.lua @@ -29,8 +29,10 @@ function self.init() local tbl = gifts[config.rules] if tbl then for _, gift in ipairs(tbl) do - if turn == gift.turn then - give_gifts(gift) + if gift.turn then + if gift.turn==turn then + give_gifts(gift) + end elseif gift.key and not get_key(gift.key) then give_gifts(gift) set_key(gift.key)