2222function s .cost (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
2323 if chk == 0 then return Duel .IsExistingMatchingCard (s .cfilter ,tp ,LOCATION_GRAVE ,0 ,2 ,nil ) end
2424end
25- function s .setfilter (c )
26- return c :IsSpell () and c :IsSSetable ()
25+ function s .setfilter (c , tp )
26+ return c :IsSpell () and c :IsSSetable (false , 1 - tp )
2727end
2828function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
29- if chk == 0 then return Duel .IsExistingMatchingCard (s .setfilter ,tp ,0 ,LOCATION_GRAVE ,1 ,nil ) end
29+ if chk == 0 then return Duel .IsExistingMatchingCard (s .setfilter ,tp ,0 ,LOCATION_GRAVE ,1 ,nil , tp ) end
3030 Duel .SetOperationInfo (0 ,CATEGORY_LEAVE_GRAVE ,nil ,1 ,1 - tp ,LOCATION_GRAVE )
3131 Duel .SetPossibleOperationInfo (0 ,CATEGORY_TOHAND ,nil ,1 ,tp ,LOCATION_GRAVE )
3232end
@@ -41,7 +41,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
4141 if not Duel .SendtoDeck (g ,nil ,SEQ_DECKSHUFFLE ,REASON_COST ) then return end
4242 -- Effect
4343 Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_SET )
44- local g = Duel .SelectMatchingCard (1 - tp ,s .setfilter ,tp ,0 ,LOCATION_GRAVE ,1 ,1 ,nil )
44+ local g = Duel .SelectMatchingCard (1 - tp ,s .setfilter ,tp ,0 ,LOCATION_GRAVE ,1 ,1 ,nil , tp )
4545 if # g > 0 then
4646 Duel .SSet (1 - tp ,g )
4747 if Duel .IsExistingMatchingCard (aux .NecroValleyFilter (s .thfilter ),tp ,LOCATION_GRAVE ,0 ,1 ,nil ) and Duel .SelectYesNo (tp ,aux .Stringid (id ,1 )) then
0 commit comments