1+ -- シルヴァーレッド・パルサー
2+ -- Silver Red Pulsar
3+ -- scripted by YoshiDuels
4+ local s ,id = GetID ()
5+ function s .initial_effect (c )
6+ -- Special Summon 1 Beast-Warrior from the GY
7+ local e1 = Effect .CreateEffect (c )
8+ e1 :SetDescription (aux .Stringid (id ,0 ))
9+ e1 :SetCategory (CATEGORY_SPECIAL_SUMMON )
10+ e1 :SetType (EFFECT_TYPE_IGNITION )
11+ e1 :SetRange (LOCATION_MZONE )
12+ e1 :SetCountLimit (1 )
13+ e1 :SetCondition (s .condition )
14+ e1 :SetTarget (s .target )
15+ e1 :SetOperation (s .operation )
16+ c :RegisterEffect (e1 )
17+ end
18+ function s .condition (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
19+ return Duel .IsExistingMatchingCard (aux .FaceupFilter (Card .IsLevelAbove ,7 ),tp ,0 ,LOCATION_MZONE ,1 ,nil )
20+ end
21+ function s .spfilter (c ,e ,tp )
22+ return c :IsRace (RACE_GALAXY ) and c :IsLevel (7 ) and c :IsType (TYPE_NORMAL ) and c :IsCanBeSpecialSummoned (e ,0 ,tp ,false ,false ,POS_FACEUP_DEFENSE )
23+ end
24+ function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
25+ if chk == 0 then return Duel .GetLocationCount (tp ,LOCATION_MZONE )> 0
26+ and Duel .IsExistingMatchingCard (s .spfilter ,tp ,LOCATION_GRAVE |LOCATION_HAND ,0 ,1 ,nil ,e ,tp )
27+ end
28+ Duel .SetOperationInfo (0 ,CATEGORY_SPECIAL_SUMMON ,nil ,0 ,tp ,LOCATION_GRAVE |LOCATION_HAND )
29+ end
30+ function s .operation (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
31+ if Duel .GetLocationCount (tp ,LOCATION_MZONE )< 1 then return end
32+ Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_SPSUMMON )
33+ local g = Duel .SelectMatchingCard (tp ,s .spfilter ,tp ,LOCATION_GRAVE |LOCATION_HAND ,0 ,1 ,1 ,nil ,e ,tp )
34+ Duel .SpecialSummon (g ,0 ,tp ,tp ,false ,false ,POS_FACEUP )
35+ end
0 commit comments