Skip to content
Snippets Groups Projects
Commit 1c6f64d5 authored by DarkGod's avatar DarkGod
Browse files

sanity check

parent 44dc3461
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment