@@ -6,44 +6,44 @@ function s.initial_effect(c)
66 c :EnableReviveLimit ()
77 -- Link Summon procedure: 2+ Machine monsters
88 Link .AddProcedure (c ,aux .FilterBoolFunctionEx (Card .IsRace ,RACE_MACHINE ),2 )
9- -- Gains total original ATK of "R.B." monsters this card points to while it points to a "R.B." monster
9+ -- Gains total original ATK of "R.B." monsters this card points to while it points to an "R.B." monster
1010 local e1 = Effect .CreateEffect (c )
1111 e1 :SetType (EFFECT_TYPE_SINGLE )
1212 e1 :SetProperty (EFFECT_FLAG_SINGLE_RANGE )
1313 e1 :SetCode (EFFECT_UPDATE_ATTACK )
1414 e1 :SetRange (LOCATION_MZONE )
15- e1 :SetCondition (function (e ) return e :GetHandler ():GetLinkedGroup ():IsExists (Card .IsSetCard ,1 ,nil , SET_RB ) end )
15+ e1 :SetCondition (function (e ) return e :GetHandler ():GetLinkedGroup ():IsExists (aux . FaceupFilter ( Card .IsSetCard ,SET_RB ), 1 ,nil ) end )
1616 e1 :SetValue (s .atkval )
1717 c :RegisterEffect (e1 )
1818 -- Can make a second attack during each Battle Phase while it points to a "R.B." monster
1919 local e2 = Effect .CreateEffect (c )
2020 e2 :SetType (EFFECT_TYPE_SINGLE )
2121 e2 :SetCode (EFFECT_EXTRA_ATTACK )
22- e2 :SetCondition (function (e ) return e :GetHandler ():GetLinkedGroup ():IsExists (Card .IsSetCard ,1 ,nil , SET_RB ) end )
22+ e2 :SetCondition (function (e ) return e :GetHandler ():GetLinkedGroup ():IsExists (aux . FaceupFilter ( Card .IsSetCard ,SET_RB ), 1 ,nil ) end )
2323 e2 :SetValue (1 )
2424 c :RegisterEffect (e2 )
2525 -- Cannot be destroyed by battle or card effects while it points to a "R.B." monster
26- local e3 = Effect .CreateEffect (c )
27- e3 :SetType (EFFECT_TYPE_SINGLE )
28- e3 :SetProperty (EFFECT_FLAG_SINGLE_RANGE )
29- e3 :SetCode (EFFECT_INDESTRUCTABLE_BATTLE )
30- e3 :SetRange (LOCATION_MZONE )
31- e3 :SetCondition (function (e ) return e :GetHandler ():GetLinkedGroup ():IsExists (Card .IsSetCard ,1 ,nil , SET_RB ) end )
32- e3 :SetValue (1 )
33- c :RegisterEffect (e3 )
34- local e4 = e3 :Clone ()
35- e4 :SetCode (EFFECT_INDESTRUCTABLE_EFFECT )
36- c :RegisterEffect (e4 )
26+ local e3a = Effect .CreateEffect (c )
27+ e3a :SetType (EFFECT_TYPE_SINGLE )
28+ e3a :SetProperty (EFFECT_FLAG_SINGLE_RANGE )
29+ e3a :SetCode (EFFECT_INDESTRUCTABLE_BATTLE )
30+ e3a :SetRange (LOCATION_MZONE )
31+ e3a :SetCondition (function (e ) return e :GetHandler ():GetLinkedGroup ():IsExists (aux . FaceupFilter ( Card .IsSetCard ,SET_RB ), 1 ,nil ) end )
32+ e3a :SetValue (1 )
33+ c :RegisterEffect (e3a )
34+ local e3b = e3a :Clone ()
35+ e3b :SetCode (EFFECT_INDESTRUCTABLE_EFFECT )
36+ c :RegisterEffect (e3b )
3737 -- Add 1 "R.B." card from your Deck to your hand
38- local e5 = Effect .CreateEffect (c )
39- e5 :SetDescription (aux .Stringid (id ,0 ))
40- e5 :SetCategory (CATEGORY_TOHAND + CATEGORY_SEARCH )
41- e5 :SetType (EFFECT_TYPE_IGNITION )
42- e5 :SetRange (LOCATION_MZONE )
43- e5 :SetCountLimit (1 ,id )
44- e5 :SetTarget (s .thtg )
45- e5 :SetOperation (s .thop )
46- c :RegisterEffect (e5 )
38+ local e4 = Effect .CreateEffect (c )
39+ e4 :SetDescription (aux .Stringid (id ,0 ))
40+ e4 :SetCategory (CATEGORY_TOHAND + CATEGORY_SEARCH )
41+ e4 :SetType (EFFECT_TYPE_IGNITION )
42+ e4 :SetRange (LOCATION_MZONE )
43+ e4 :SetCountLimit (1 ,id )
44+ e4 :SetTarget (s .thtg )
45+ e4 :SetOperation (s .thop )
46+ c :RegisterEffect (e4 )
4747end
4848s .listed_series = {SET_RB }
4949function s .atkfilter (c )
@@ -66,4 +66,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
6666 Duel .SendtoHand (g ,nil ,REASON_EFFECT )
6767 Duel .ConfirmCards (1 - tp ,g )
6868 end
69- end
69+ end
0 commit comments