11-- LL-セレスト・ワグテイル
2- -- Lyrilusc - Celeste Wagtail
2+ -- Lyrilusc - Celestine Wagtail
33-- Scripted by The Razgriz
44local s ,id = GetID ()
55function s .initial_effect (c )
6- -- Add 1 LL S/T from Deck to hand
6+ -- Add 1 "Lyrilusc" Spell/Trap from your Deck to your hand
77 local e1 = Effect .CreateEffect (c )
88 e1 :SetDescription (aux .Stringid (id ,0 ))
99 e1 :SetCategory (CATEGORY_TOHAND + CATEGORY_SEARCH )
@@ -14,7 +14,7 @@ function s.initial_effect(c)
1414 e1 :SetTarget (s .thtg )
1515 e1 :SetOperation (s .thop )
1616 c :RegisterEffect (e1 )
17- -- Attach to 1 LL Xyz monster from GY
17+ -- Attach this card from your GY to 1 "Lyrilusc" Xyz monster you control
1818 local e2 = Effect .CreateEffect (c )
1919 e2 :SetCategory (CATEGORY_LEAVE_GRAVE )
2020 e2 :SetType (EFFECT_TYPE_IGNITION )
@@ -25,9 +25,9 @@ function s.initial_effect(c)
2525 e2 :SetOperation (s .atchop )
2626 c :RegisterEffect (e2 )
2727end
28- s .listed_series = {0xf7 }
28+ s .listed_series = {SET_LYRILUSC }
2929function s .thfilter (c )
30- return c :IsSetCard (0xf7 ) and c :IsSpellTrap () and c :IsAbleToHand ()
30+ return c :IsSetCard (SET_LYRILUSC ) and c :IsSpellTrap () and c :IsAbleToHand ()
3131end
3232function s .thtg (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
3333 if chk == 0 then return Duel .IsExistingMatchingCard (s .thfilter ,tp ,LOCATION_DECK ,0 ,1 ,nil ) end
@@ -41,13 +41,14 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
4141 Duel .ConfirmCards (1 - tp ,g )
4242 end
4343end
44- function s .filter (c )
45- return c :IsFaceup () and c :IsSetCard (0xf7 ) and c :IsType (TYPE_XYZ )
44+ function s .atchfilter (c )
45+ return c :IsFaceup () and c :IsSetCard (SET_LYRILUSC ) and c :IsType (TYPE_XYZ )
4646end
4747function s .atchtg (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk ,chkc )
48- if chk == 0 then return Duel .IsExistingTarget (s .filter ,tp ,LOCATION_MZONE ,0 ,1 ,nil ) end
48+ if chkc then return chkc :IsLocation (LOCATION_MZONE ) and chkc :IsControler (tp ) and s .atchfilter (chkc ) end
49+ if chk == 0 then return Duel .IsExistingTarget (s .atchfilter ,tp ,LOCATION_MZONE ,0 ,1 ,nil ) end
4950 Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_TARGET )
50- Duel .SelectTarget (tp ,s .filter ,tp ,LOCATION_MZONE ,0 ,1 ,1 ,nil )
51+ Duel .SelectTarget (tp ,s .atchfilter ,tp ,LOCATION_MZONE ,0 ,1 ,1 ,nil )
5152 Duel .SetOperationInfo (0 ,CATEGORY_LEAVE_GRAVE ,e :GetHandler (),1 ,0 ,0 )
5253end
5354function s .atchop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
0 commit comments