From 1c6f64d58fabca50ef531f261534ee674df5bc97 Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Fri, 6 Jun 2014 10:12:52 +0200 Subject: [PATCH] sanity check --- game/modules/tome/data/talents/gifts/gifts.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/tome/data/talents/gifts/gifts.lua b/game/modules/tome/data/talents/gifts/gifts.lua index a173b34054..351e7c9770 100644 --- a/game/modules/tome/data/talents/gifts/gifts.lua +++ b/game/modules/tome/data/talents/gifts/gifts.lua @@ -94,7 +94,7 @@ function checkMaxSummon(self, silent, div, check_attr) for act, def in pairs(game.party.members) do if act.summoner and act.summoner == self and act.wild_gift_summon and (not check_attr or act:attr(check_attr)) then nb = nb + 1 end end - else + elseif game.level then for _, act in pairs(game.level.entities) do if act.summoner and act.summoner == self and act.wild_gift_summon and (not check_attr or act:attr(check_attr)) then nb = nb + 1 end end -- GitLab