11-- D-HERO ディナイアルガイ
22-- Destiny HERO - Denier
3- -- Logical Nonsense
4- -- Substitute ID
3+ -- scripted by Logical Nonsense
54local s ,id = GetID ()
65function s .initial_effect (c )
7- -- If normal or special summoned, place on top of your Deck, 1 of your "Destiny HERO" monsters that is banished, in GY, or Deck
6+ -- Place on top of your Deck 1 of your "Destiny HERO" monsters that is banished, in the GY, or Deck
87 local e1 = Effect .CreateEffect (c )
98 e1 :SetDescription (aux .Stringid (id ,0 ))
109 e1 :SetType (EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O )
@@ -18,7 +17,7 @@ function s.initial_effect(c)
1817 local e2 = e1 :Clone ()
1918 e2 :SetCode (EVENT_SPSUMMON_SUCCESS )
2019 c :RegisterEffect (e2 )
21- -- Special summon itself from GY
20+ -- Special Summon this card from your GY
2221 local e3 = Effect .CreateEffect (c )
2322 e3 :SetDescription (aux .Stringid (id ,1 ))
2423 e3 :SetCategory (CATEGORY_SPECIAL_SUMMON )
@@ -30,21 +29,17 @@ function s.initial_effect(c)
3029 e3 :SetOperation (s .spop )
3130 c :RegisterEffect (e3 )
3231end
33- -- Lists "Destiny HERO" archetype
34- s .listed_series = {SET_DESTINY_HERO }
35- -- Specifically lists itself
3632s .listed_names = {id }
37- -- Check for a "Destiny HERO" monster
33+ s . listed_series = { SET_DESTINY_HERO }
3834function s .filter (c )
3935 return c :IsSetCard (SET_DESTINY_HERO ) and c :IsMonster () and (c :IsFaceup () or c :IsLocation (LOCATION_GRAVE |LOCATION_DECK ))
4036end
4137function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
4238 if chk == 0 then return Duel .IsExistingMatchingCard (s .filter ,tp ,LOCATION_DECK |LOCATION_GRAVE |LOCATION_REMOVED ,0 ,1 ,nil ) end
4339 Duel .SetOperationInfo (0 ,CATEGORY_TODECK ,nil ,1 ,0 ,LOCATION_DECK |LOCATION_GRAVE |LOCATION_REMOVED )
4440end
45- -- Place on top of your Deck, 1 of your "Destiny HERO" monsters that is banished, in GY, or Deck
4641function s .operation (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
47- Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_TODECK )
42+ Duel .Hint (HINT_SELECTMSG ,tp ,aux . Stringid ( id , 2 ) )
4843 local g = Duel .SelectMatchingCard (tp ,aux .NecroValleyFilter (s .filter ),tp ,LOCATION_DECK |LOCATION_GRAVE |LOCATION_REMOVED ,0 ,1 ,1 ,nil )
4944 local tc = g :GetFirst ()
5045 if not tc then return end
@@ -59,21 +54,18 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
5954 Duel .ConfirmDecktop (tp ,1 )
6055 end
6156end
62- -- Check for a "Destiny HERO" monster
6357function s .spfilter (c )
6458 return c :IsFaceup () and c :IsMonster () and c :IsSetCard (SET_DESTINY_HERO ) and not c :IsCode (id )
6559end
6660function s .spcon (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
6761 return Duel .IsExistingMatchingCard (s .spfilter ,tp ,LOCATION_ONFIELD |LOCATION_GRAVE ,0 ,1 ,nil )
6862end
69- -- Activation legality
7063function s .sptg (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
7164 local c = e :GetHandler ()
7265 if chk == 0 then return Duel .GetLocationCount (tp ,LOCATION_MZONE )> 0
7366 and e :GetHandler ():IsCanBeSpecialSummoned (e ,0 ,tp ,false ,false ) end
7467 Duel .SetOperationInfo (0 ,CATEGORY_SPECIAL_SUMMON ,c ,1 ,0 ,0 )
7568end
76- -- Special summon itself from GY
7769function s .spop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
7870 local c = e :GetHandler ()
7971 if c :IsRelateToEffect (e ) then
0 commit comments