forked from github/server
fix not giving christmas trees
https://bugs.eressea.de/view.php?id=2171
This commit is contained in:
parent
e91310f576
commit
02c249d61e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue