1- -- Stardust Charge Warrior
1+ -- スターダスト・チャージ・ウォリアー (Manga)
2+ -- Stardust Charge Warrior (Manga)
23local s ,id = GetID ()
34function s .initial_effect (c )
4- -- synchro summon
5- Synchro .AddProcedure (c ,nil ,1 ,1 ,Synchro .NonTuner (nil ),1 ,99 )
65 c :EnableReviveLimit ()
7- -- draw
6+ -- Synchro Summon procedure: 1 Tuner + 1 or more non-Tuner monsters
7+ Synchro .AddProcedure (c ,nil ,1 ,1 ,Synchro .NonTuner (nil ),1 ,99 )
8+ -- When this card is Synchro Summoned: Draw 1 card
89 local e1 = Effect .CreateEffect (c )
910 e1 :SetDescription (aux .Stringid (id ,0 ))
1011 e1 :SetCategory (CATEGORY_DRAW )
1112 e1 :SetType (EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F )
1213 e1 :SetProperty (EFFECT_FLAG_PLAYER_TARGET )
1314 e1 :SetCode (EVENT_SPSUMMON_SUCCESS )
14- e1 :SetCondition (s . condition )
15+ e1 :SetCondition (function ( e ) return e : GetHandler (): IsSynchroSummoned () end )
1516 e1 :SetTarget (s .target )
1617 e1 :SetOperation (s .operation )
1718 c :RegisterEffect (e1 )
18- -- attack all
19+ -- This card can attack all Special Summoned monsters your opponent controls, once each
1920 local e2 = Effect .CreateEffect (c )
2021 e2 :SetType (EFFECT_TYPE_SINGLE )
2122 e2 :SetCode (EFFECT_ATTACK_ALL )
22- e2 :SetValue (s . atkfilter )
23+ e2 :SetValue (function ( e , c ) return c : IsSpecialSummoned () end )
2324 c :RegisterEffect (e2 )
2425end
25- function s .condition (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
26- return e :GetHandler ():GetSummonType ()== SUMMON_TYPE_SYNCHRO
27- end
2826function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
2927 if chk == 0 then return true end
3028 Duel .SetTargetPlayer (tp )
@@ -35,6 +33,3 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
3533 local p ,d = Duel .GetChainInfo (0 ,CHAININFO_TARGET_PLAYER ,CHAININFO_TARGET_PARAM )
3634 Duel .Draw (p ,d ,REASON_EFFECT )
3735end
38- function s .atkfilter (e ,c )
39- return (c :GetSummonType ()&SUMMON_TYPE_SPECIAL )== SUMMON_TYPE_SPECIAL
40- end
0 commit comments