Skip to content

Commit aeb4576

Browse files
committed
"Destiny HERO - Denier" update
Updated the hint message shown when the player has to select a card to place on top of their Deck
1 parent db7a0d7 commit aeb4576

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

official/c16605586.lua

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
--D-HERO ディナイアルガイ
22
--Destiny HERO - Denier
3-
--Logical Nonsense
4-
--Substitute ID
3+
--scripted by Logical Nonsense
54
local s,id=GetID()
65
function 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)
3231
end
33-
--Lists "Destiny HERO" archetype
34-
s.listed_series={SET_DESTINY_HERO}
35-
--Specifically lists itself
3632
s.listed_names={id}
37-
--Check for a "Destiny HERO" monster
33+
s.listed_series={SET_DESTINY_HERO}
3834
function s.filter(c)
3935
return c:IsSetCard(SET_DESTINY_HERO) and c:IsMonster() and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE|LOCATION_DECK))
4036
end
4137
function 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)
4440
end
45-
--Place on top of your Deck, 1 of your "Destiny HERO" monsters that is banished, in GY, or Deck
4641
function 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
6156
end
62-
--Check for a "Destiny HERO" monster
6357
function s.spfilter(c)
6458
return c:IsFaceup() and c:IsMonster() and c:IsSetCard(SET_DESTINY_HERO) and not c:IsCode(id)
6559
end
6660
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
6761
return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_ONFIELD|LOCATION_GRAVE,0,1,nil)
6862
end
69-
--Activation legality
7063
function 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)
7568
end
76-
--Special summon itself from GY
7769
function s.spop(e,tp,eg,ep,ev,re,r,rp)
7870
local c=e:GetHandler()
7971
if c:IsRelateToEffect(e) then

0 commit comments

Comments
 (0)