Skip to content

Commit fda5fce

Browse files
committed
Fix Destiny Overlay
It was only working if all the monsters on the field were usable at the same time
1 parent 9fb329a commit fda5fce

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

unofficial/c100000490.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ function s.registerxyzmateffect(e,tp)
2323
Duel.RegisterEffect(matEff,tp)
2424
return matEff
2525
end
26-
function s.xyzfilter(c,mg,fg,minc,maxg)
27-
return c:IsXyzSummonable(mg,fg,minc,maxg)
26+
function s.xyzfilter(c,mg,minc,maxc)
27+
return c:IsXyzSummonable(nil,mg,minc,maxc)
2828
end
2929
function s.rescon(exg)
3030
return function(sg)
@@ -51,7 +51,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
5151
local c=e:GetHandler()
5252
local g=Duel.GetTargetCards(e)
5353
local matEff=s.registerxyzmateffect(e,tp)
54-
local xyzg=Duel.GetMatchingGroup(s.xyzfilter,tp,LOCATION_EXTRA,0,nil,nil,g,#g,#g)
54+
local xyzg=Duel.GetMatchingGroup(s.xyzfilter,tp,LOCATION_EXTRA,0,nil,g,#g,#g)
5555
if #xyzg>0 then
5656
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
5757
local xyz=xyzg:Select(tp,1,1,nil):GetFirst()
@@ -67,4 +67,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
6767
else
6868
matEff:Reset()
6969
end
70-
end
70+
end

0 commit comments

Comments
 (0)