1+ -- ゼラの剣
2+ -- The Sword of Zera
3+ -- scripted by YoshiDuels
4+ local s ,id = GetID ()
5+ function s .initial_effect (c )
6+ -- equip
7+ aux .AddEquipProcedure (c ,0 ,s .eqfilter ,s .eqlimit ,nil ,nil ,s .gainop )
8+ -- Increase ATK
9+ local e1 = Effect .CreateEffect (c )
10+ e1 :SetType (EFFECT_TYPE_EQUIP )
11+ e1 :SetCode (EFFECT_UPDATE_ATTACK )
12+ e1 :SetCondition (s .condition )
13+ e1 :SetValue (1000 )
14+ c :RegisterEffect (e1 )
15+ end
16+ s .listed_names = {69123138 ,66073051 }
17+ function s .eqfilter (c )
18+ return c :IsFaceup () and c :IsCode (69123138 ,66073051 ) and not c :IsMaximumModeSide ()
19+ end
20+ function s .eqlimit (e ,c )
21+ return c :IsFaceup ()
22+ end
23+ function s .gainop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
24+ local c = e :GetHandler ()
25+ local tc = Duel .GetFirstTarget ()
26+ if c :IsRelateToEffect (e ) and tc :IsRelateToEffect (e ) and tc :IsFaceup () then
27+ local e1 = Effect .CreateEffect (c )
28+ e1 :SetType (EFFECT_TYPE_SINGLE )
29+ e1 :SetCode (EFFECT_PIERCE )
30+ local e2 = Effect .CreateEffect (c )
31+ e2 :SetType (EFFECT_TYPE_FIELD + EFFECT_TYPE_GRANT )
32+ e2 :SetRange (LOCATION_SZONE )
33+ e2 :SetTargetRange (LOCATION_MZONE ,LOCATION_MZONE )
34+ e2 :SetCondition (s .condition )
35+ e2 :SetTarget (s .eftg )
36+ e2 :SetLabelObject (e1 )
37+ e2 :SetReset (RESET_EVENT |RESETS_STANDARD )
38+ c :RegisterEffect (e2 )
39+ end
40+ end
41+ function s .eftg (e ,c )
42+ return e :GetHandler ():GetEquipTarget ()== c
43+ end
44+ function s .condition (e )
45+ return Duel .GetTurnPlayer ()== e :GetHandler ():GetControler ()
46+ end
0 commit comments