Commit 1c6f64d58fabca50ef531f261534ee674df5bc97

Authored by DarkGod
1 parent 44dc3461

sanity check

... ... @@ -94,7 +94,7 @@ function checkMaxSummon(self, silent, div, check_attr)
94 94 for act, def in pairs(game.party.members) do
95 95 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
96 96 end
97   - else
  97 + elseif game.level then
98 98 for _, act in pairs(game.level.entities) do
99 99 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
100 100 end
... ...