1- -- Number 77: The Seven Sins
1+ -- No.77 ザ・セブン・シンズ (Manga)
2+ -- Number 77: The Seven Sins (Manga)
23Duel .LoadCardScript (" c62541668.lua" )
34local s ,id = GetID ()
45function s .initial_effect (c )
5- -- xyz summon
6- Xyz .AddProcedure (c ,nil ,12 ,2 )
76 c :EnableReviveLimit ()
8- -- destroy
7+ -- Xyz Summon procedure: 2 Level 12 monsters
8+ Xyz .AddProcedure (c ,nil ,12 ,2 )
9+ -- Cannot be destroyed by battle, except by "Number" monsters
910 local e1 = Effect .CreateEffect (c )
10- e1 :SetDescription (aux .Stringid (id ,0 ))
11- e1 :SetCategory (CATEGORY_DESTROY )
12- e1 :SetType (EFFECT_TYPE_IGNITION )
13- e1 :SetRange (LOCATION_MZONE )
14- e1 :SetCountLimit (1 )
15- e1 :SetCost (s .cost )
16- e1 :SetTarget (s .target )
17- e1 :SetOperation (s .operation )
18- c :RegisterEffect (e1 ,false ,REGISTER_FLAG_DETACH_XMAT )
19- -- banish replace
11+ e1 :SetType (EFFECT_TYPE_SINGLE )
12+ e1 :SetCode (EFFECT_INDESTRUCTABLE_BATTLE )
13+ e1 :SetValue (aux .NOT (aux .TargetBoolFunction (Card .IsSetCard ,SET_NUMBER )))
14+ c :RegisterEffect (e1 )
15+ -- Destroy monsters your opponent controls, then attach them to this card as Xyz Material
2016 local e2 = Effect .CreateEffect (c )
21- e2 :SetType (EFFECT_TYPE_CONTINUOUS + EFFECT_TYPE_SINGLE )
17+ e2 :SetDescription (aux .Stringid (id ,0 ))
18+ e2 :SetCategory (CATEGORY_DESTROY )
19+ e2 :SetType (EFFECT_TYPE_IGNITION )
2220 e2 :SetRange (LOCATION_MZONE )
23- e2 :SetCode (EFFECT_SEND_REPLACE )
24- e2 :SetTarget (s .reptg )
25- c :RegisterEffect (e2 )
26- -- battle indestructable
27- local e5 = Effect .CreateEffect (c )
28- e5 :SetType (EFFECT_TYPE_SINGLE )
29- e5 :SetCode (EFFECT_INDESTRUCTABLE_BATTLE )
30- e5 :SetValue (aux .NOT (aux .TargetBoolFunction (Card .IsSetCard ,SET_NUMBER )))
31- c :RegisterEffect (e5 )
21+ e2 :SetCountLimit (1 )
22+ e2 :SetCost (Cost .Detach (1 ))
23+ e2 :SetTarget (s .desatchtg )
24+ e2 :SetOperation (s .desatchop )
25+ c :RegisterEffect (e2 ,false ,REGISTER_FLAG_DETACH_XMAT )
26+ -- If this card would be banished, you can detach 1 material from this card instead
27+ local e3 = Effect .CreateEffect (c )
28+ e3 :SetType (EFFECT_TYPE_CONTINUOUS + EFFECT_TYPE_SINGLE )
29+ e3 :SetRange (LOCATION_MZONE )
30+ e3 :SetCode (EFFECT_SEND_REPLACE )
31+ e3 :SetTarget (s .reptg )
32+ c :RegisterEffect (e3 )
3233end
33- s .listed_series = {0x48 }
34+ s .listed_series = {SET_NUMBER }
3435s .xyz_number = 77
35- function s .cost (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
36- if chk == 0 then return e :GetHandler ():CheckRemoveOverlayCard (tp ,1 ,REASON_COST ) end
37- e :GetHandler ():RemoveOverlayCard (tp ,1 ,1 ,REASON_COST )
38- end
39- function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
36+ function s .desatchtg (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
4037 if chk == 0 then return Duel .IsExistingMatchingCard (aux .TRUE ,tp ,0 ,LOCATION_MZONE ,1 ,nil ) end
4138 local g = Duel .GetMatchingGroup (aux .TRUE ,tp ,0 ,LOCATION_MZONE ,nil )
4239 Duel .SetOperationInfo (0 ,CATEGORY_DESTROY ,g ,# g ,0 ,0 )
4340end
44- function s .operation (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
41+ function s .desatchop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
4542 local c = e :GetHandler ()
4643 local g = Duel .GetMatchingGroup (aux .TRUE ,tp ,0 ,LOCATION_MZONE ,nil )
4744 if Duel .Destroy (g ,REASON_EFFECT )> 0 then
@@ -58,4 +55,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
5855 c :RemoveOverlayCard (tp ,1 ,1 ,REASON_COST )
5956 return true
6057 else return false end
61- end
58+ end
0 commit comments