1- -- 虹色の祝福
1+ -- 虹色の祝福 (DM)
22-- Rainbow Blessing (DM)
33local s ,id = GetID ()
44function s .initial_effect (c )
55 aux .AddEquipProcedure (c ,nil ,aux .FilterBoolFunction (Card .IsCode ,CARD_KURIBOH ))
6- -- Direct
6+ -- You can Tribute the equipped monster; 1 monster you control can attack your opponent directly this turn.
77 local e2 = Effect .CreateEffect (c )
88 e2 :SetType (EFFECT_TYPE_IGNITION )
99 e2 :SetRange (LOCATION_SZONE )
1010 e2 :SetCountLimit (1 )
1111 e2 :SetCost (s .cost )
12- e2 :SetTarget (s .dirtar )
13- e2 :SetOperation (s .diract )
12+ e2 :SetTarget (s .diratktg )
13+ e2 :SetOperation (s .diratkop )
1414 c :RegisterEffect (e2 )
1515end
1616s .listed_names = {CARD_KURIBOH }
@@ -19,18 +19,18 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
1919 if chk == 0 then return eq :IsReleasable () end
2020 Duel .Release (eq ,REASON_COST )
2121end
22- function s .dirtar (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk , chkc )
22+ function s .diratktg (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
2323 if chk == 0 then return Duel .IsExistingMatchingCard (nil ,tp ,LOCATION_MZONE ,0 ,1 ,nil ) end
2424end
25- function s .diract (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
26- local g = Duel .GetMatchingGroup (nil ,tp ,LOCATION_MZONE ,0 ,nil )
27- local tc = g :GetFirst ()
28- while tc do
29- local e1 = Effect .CreateEffect (e :GetHandler ())
25+ function s .diratkop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
26+ local c = e :GetHandler ()
27+ Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_APPLYTO )
28+ local tc = Duel .SelectMatchingCard (tp ,nil ,tp ,LOCATION_MZONE ,0 ,1 ,1 ,nil ):GetFirst ()
29+ if tc then
30+ local e1 = Effect .CreateEffect (c )
3031 e1 :SetType (EFFECT_TYPE_SINGLE )
3132 e1 :SetCode (EFFECT_DIRECT_ATTACK )
32- e1 :SetReset (RESET_EVENT + RESETS_STANDARD + RESET_PHASE + PHASE_END )
33+ e1 :SetReset (RESETS_STANDARD_PHASE_END )
3334 tc :RegisterEffect (e1 )
34- tc = g :GetNext ()
3535 end
36- end
36+ end
0 commit comments