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

Fire hatchlings summoned by the Grand Arrival of Fire Drakes do not count...

Fire hatchlings summoned by the Grand Arrival of Fire Drakes do not count towards the max summon limit
parent defe3dcc
No related branches found
No related tags found
No related merge requests found
......@@ -95,11 +95,11 @@ function checkMaxSummon(self, silent, div, check_attr)
-- Count party members
if game.party:hasMember(self) then
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
if act.summoner and act.summoner == self and act.wild_gift_summon and not act.wild_gift_summon_ignore_cap and (not check_attr or act:attr(check_attr)) then nb = nb + 1 end
end
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
if act.summoner and act.summoner == self and act.wild_gift_summon and not act.wild_gift_summon_ignore_cap and (not check_attr or act:attr(check_attr)) then nb = nb + 1 end
end
end
......
......@@ -577,7 +577,7 @@ newTalent{
resists = { [DamageType.FIRE] = 100, },
summoner = self, summoner_gain_exp=true, wild_gift_summon=true,
summoner = self, summoner_gain_exp=true, wild_gift_summon=true, wild_gift_summon_ignore_cap=true,
summon_time = m.summon_time,
ai_target = {actor=m.ai_target.actor}
}
......
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