11-- エクシーズ・シフト (Anime)
22-- Xyz Shift (Anime)
3- -- Scripter by IanxWaifu
4- -- fixed by MLD
3+ -- Scripted by IanxWaifu
54local s ,id = GetID ()
65function s .initial_effect (c )
76 -- Activate
@@ -19,7 +18,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
1918 if chk == 0 then return true end
2019end
2120function s .cfilter (c ,e ,tp )
22- return c :IsType ( TYPE_XYZ ) and c :IsAbleToGraveAsCost ()
21+ return c :IsXyzMonster ( ) and c :IsReleasable ()
2322 and Duel .IsExistingMatchingCard (s .spfilter ,tp ,LOCATION_EXTRA ,0 ,1 ,nil ,e ,tp ,c :GetRank (),c )
2423end
2524function s .spfilter (c ,e ,tp ,rk ,mc )
@@ -33,9 +32,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
3332 return e :IsHasType (EFFECT_TYPE_ACTIVATE ) and Duel .IsExistingMatchingCard (s .cfilter ,tp ,LOCATION_MZONE ,0 ,1 ,nil ,e ,tp )
3433 end
3534 e :SetLabel (0 )
35+ Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_RELEASE )
3636 local g = Duel .SelectMatchingCard (tp ,s .cfilter ,tp ,LOCATION_MZONE ,0 ,1 ,1 ,nil ,e ,tp )
3737 Duel .SetTargetParam (g :GetFirst ():GetRank ())
38- Duel .SendtoGrave (g ,REASON_COST )
38+ Duel .Release (g ,REASON_COST )
3939 Duel .SetOperationInfo (0 ,CATEGORY_SPECIAL_SUMMON ,nil ,1 ,tp ,LOCATION_EXTRA )
4040end
4141function s .activate (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
@@ -48,4 +48,5 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
4848 Duel .Overlay (sc ,c )
4949 end
5050 end
51- end
51+ aux .DelayedOperation (sc ,PHASE_END ,id ,e ,tp ,function (ag ) Duel .Destroy (ag ,REASON_EFFECT ) end ,nil ,0 )
52+ end
0 commit comments