1+ -- 暗黒の邪竜騎士
2+ -- Wicked Dragon Knight of Darkness
3+ -- scripted by YoshiDuels
4+ local s ,id = GetID ()
5+ function s .initial_effect (c )
6+ -- fusion material
7+ c :EnableReviveLimit ()
8+ Fusion .AddProcMix (c ,true ,true ,160302004 ,160214042 )
9+ -- Gain 400 ATK for each Normal monster in your Graveyard
10+ local e1 = Effect .CreateEffect (c )
11+ e1 :SetDescription (aux .Stringid (id ,0 ))
12+ e1 :SetCategory (CATEGORY_ATKCHANGE )
13+ e1 :SetType (EFFECT_TYPE_IGNITION )
14+ e1 :SetCountLimit (1 ,0 ,EFFECT_COUNT_CODE_SINGLE )
15+ e1 :SetRange (LOCATION_MZONE )
16+ e1 :SetCost (s .cost )
17+ e1 :SetTarget (s .target )
18+ e1 :SetOperation (s .operation )
19+ c :RegisterEffect (e1 )
20+ -- Gain 600 ATK while this card is face-up on the field
21+ local e2 = Effect .CreateEffect (c )
22+ e2 :SetDescription (aux .Stringid (id ,1 ))
23+ e2 :SetCategory (CATEGORY_ATKCHANGE )
24+ e2 :SetType (EFFECT_TYPE_IGNITION )
25+ e2 :SetCountLimit (1 ,0 ,EFFECT_COUNT_CODE_SINGLE )
26+ e2 :SetRange (LOCATION_MZONE )
27+ e2 :SetCost (s .cost )
28+ e2 :SetOperation (s .operation2 )
29+ c :RegisterEffect (e2 )
30+ end
31+ function s .cost (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
32+ if chk == 0 then return Duel .CheckLPCost (tp ,500 ) end
33+ end
34+ function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
35+ if chk == 0 then return Duel .IsExistingMatchingCard (Card .IsType ,tp ,LOCATION_GRAVE ,0 ,1 ,nil ,TYPE_NORMAL ) end
36+ end
37+ function s .operation (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
38+ local c = e :GetHandler ()
39+ -- Requirement
40+ Duel .PayLPCost (tp ,500 )
41+ -- Effect
42+ local ct = Duel .GetMatchingGroupCount (Card .IsType ,tp ,LOCATION_GRAVE ,0 ,nil ,TYPE_NORMAL )
43+ local e1 = Effect .CreateEffect (c )
44+ e1 :SetType (EFFECT_TYPE_SINGLE )
45+ e1 :SetCode (EFFECT_UPDATE_ATTACK )
46+ e1 :SetProperty (EFFECT_FLAG_COPY_INHERIT )
47+ e1 :SetReset (RESETS_STANDARD_DISABLE_PHASE_END )
48+ e1 :SetValue (ct * 400 )
49+ c :RegisterEffect (e1 )
50+ end
51+ function s .operation2 (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
52+ local c = e :GetHandler ()
53+ -- Requirement
54+ Duel .PayLPCost (tp ,500 )
55+ -- Effect
56+ local e1 = Effect .CreateEffect (c )
57+ e1 :SetType (EFFECT_TYPE_SINGLE )
58+ e1 :SetCode (EFFECT_UPDATE_ATTACK )
59+ e1 :SetProperty (EFFECT_FLAG_COPY_INHERIT )
60+ e1 :SetReset (RESET_EVENT |RESETS_STANDARD )
61+ e1 :SetValue (600 )
62+ c :RegisterEffect (e1 )
63+ end
0 commit comments