11-- 王家の生け贄
2+ -- Royal Tribute
23local s ,id = GetID ()
34function s .initial_effect (c )
45 -- Activate
56 local e1 = Effect .CreateEffect (c )
67 e1 :SetCategory (CATEGORY_HANDES + CATEGORY_TOGRAVE )
78 e1 :SetType (EFFECT_TYPE_ACTIVATE )
89 e1 :SetCode (EVENT_FREE_CHAIN )
9- e1 :SetCondition (s . condition )
10- e1 :SetTarget (s .target )
11- e1 :SetOperation (s .activate )
10+ e1 :SetCondition (function ( e , tp ) return Duel . IsEnvironment ( CARD_NECROVALLEY , tp ) end )
11+ e1 :SetTarget (s .handestg )
12+ e1 :SetOperation (s .handesop )
1213 c :RegisterEffect (e1 )
1314end
14- function s .condition (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
15- return Duel .IsEnvironment (CARD_NECROVALLEY ,tp )
16- end
17- function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
15+ s .listed_names = {CARD_NECROVALLEY }
16+ function s .handestg (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
1817 if chk == 0 then return Duel .IsExistingMatchingCard (nil ,tp ,LOCATION_HAND ,LOCATION_HAND ,1 ,e :GetHandler ()) end
1918 Duel .SetOperationInfo (0 ,CATEGORY_HANDES ,nil ,0 ,PLAYER_ALL ,0 )
2019 Duel .SetOperationInfo (0 ,CATEGORY_TOGRAVE ,nil ,1 ,PLAYER_ALL ,LOCATION_HAND )
2120end
22- function s .activate (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
21+ function s .handesop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
2322 local g = Duel .GetMatchingGroup (Card .IsMonster ,tp ,LOCATION_HAND ,LOCATION_HAND ,nil )
2423 if # g > 0 then
25- Duel .SendtoGrave (g ,REASON_EFFECT + REASON_DISCARD )
24+ Duel .SendtoGrave (g ,REASON_EFFECT | REASON_DISCARD )
2625 end
27- end
26+ end
0 commit comments