@@ -27,13 +27,13 @@ function s.initial_effect(c)
2727 s [1 ]= false
2828 end )
2929 end )
30- end
30+ end
3131function s .condition (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
3232 return Duel .GetCurrentPhase ()== PHASE_END and s [tp ]
3333end
3434s .listed_series = {0x48 }
3535function s .cfilter (c )
36- return c :IsSetCard (SET_NUMBER ) and c :IsPreviousLocation (LOCATION_ONFIELD ) and c :IsPreviousPosition (POS_FACEUP )
36+ return c :IsSetCard (SET_NUMBER ) and c :IsPreviousLocation (LOCATION_ONFIELD ) and c :IsPreviousPosition (POS_FACEUP )
3737 and (c :GetReason ()&REASON_DESTROY )== REASON_DESTROY
3838end
3939function s .checkop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
@@ -44,7 +44,7 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp)
4444end
4545function s .filter (c ,e ,tp ,ft ,g ,pg )
4646 local ct = c .minxyzct
47- return ft >= ct and c :IsRankBelow (4 ) and c :IsAttribute (ATTRIBUTE_DARK ) and c :IsRace (RACE_FIEND ) and c :IsType (TYPE_XYZ )
47+ return ft >= ct and c :IsRankBelow (4 ) and c :IsAttribute (ATTRIBUTE_DARK ) and c :IsRace (RACE_FIEND ) and c :IsType (TYPE_XYZ )
4848 and c :IsCanBeSpecialSummoned (e ,SUMMON_TYPE_XYZ ,tp ,false ,false )
4949 and aux .SelectUnselectGroup (g ,e ,tp ,ct ,ct ,aux .FilterBoolFunction (Group .Includes ,pg ),0 )
5050end
@@ -69,6 +69,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
6969 local ft = Duel .GetLocationCount (tp ,LOCATION_MZONE )
7070 local ct = tc .minxyzct
7171 local ct2 = tc .maxxyzct
72+ if ct2 == Xyz .InfiniteMats then ct2 = ft end
7273 if Duel .IsPlayerAffectedByEffect (tp ,CARD_BLUEEYES_SPIRIT ) then if ct > 1 then return end ct2 = math.min (ct2 ,1 ) end
7374 if ft < ct then return end
7475 if ft < ct2 then ct2 = ft end
@@ -93,4 +94,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
9394 Duel .SpecialSummon (tc ,SUMMON_TYPE_XYZ ,tp ,tp ,false ,false ,POS_FACEUP )
9495 tc :CompleteProcedure ()
9596 end
96- end
97+ end
0 commit comments