Skip to content

Commit 16ddb00

Browse files
authored
Added new card scripts
1 parent aefede7 commit 16ddb00

8 files changed

Lines changed: 587 additions & 0 deletions

File tree

‎pre-release/c101303014.lua‎

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
--ロワイヤル・デーモン
2+
--Royal Archfiend
3+
--scripted by Naim
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Add 1 "Archfiend" card from your Deck to your hand
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
10+
e1:SetType(EFFECT_TYPE_IGNITION)
11+
e1:SetRange(LOCATION_HAND|LOCATION_MZONE)
12+
e1:SetCountLimit(1,id)
13+
e1:SetCost(Cost.SelfTribute)
14+
e1:SetTarget(s.thtg)
15+
e1:SetOperation(s.thop)
16+
c:RegisterEffect(e1)
17+
--Special Summon this card
18+
local e2=Effect.CreateEffect(c)
19+
e2:SetDescription(aux.Stringid(id,1))
20+
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
21+
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
22+
e2:SetCode(EVENT_BATTLE_DESTROYED)
23+
e2:SetRange(LOCATION_GRAVE)
24+
e2:SetCountLimit(1,{id,1})
25+
e2:SetCondition(s.spcon)
26+
e2:SetTarget(s.sptg)
27+
e2:SetOperation(s.spop)
28+
c:RegisterEffect(e2)
29+
end
30+
s.listed_names={id}
31+
s.listed_series={SET_ARCHFIEND}
32+
function s.thfilter(c)
33+
return c:IsSetCard(SET_ARCHFIEND) and c:IsAbleToHand() and not c:IsCode(id)
34+
end
35+
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
36+
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
37+
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
38+
end
39+
function s.thop(e,tp,eg,ep,ev,re,r,rp)
40+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
41+
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil)
42+
if #g>0 then
43+
Duel.SendtoHand(g,nil,REASON_EFFECT)
44+
Duel.ConfirmCards(1-tp,g)
45+
end
46+
local c=e:GetHandler()
47+
--For the rest of this turn, you cannot Special Summon from the Extra Deck, except "Archfiend" monsters
48+
local e1=Effect.CreateEffect(c)
49+
e1:SetDescription(aux.Stringid(id,2))
50+
e1:SetType(EFFECT_TYPE_FIELD)
51+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
52+
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
53+
e1:SetTargetRange(1,0)
54+
e1:SetTarget(function(e,c) return c:IsLocation(LOCATION_EXTRA) and not c:IsSetCard(SET_ARCHFIEND) end)
55+
e1:SetReset(RESET_PHASE|PHASE_END)
56+
Duel.RegisterEffect(e1,tp)
57+
aux.RegisterClientHint(c,nil,tp,1,0,aux.Stringid(id,3))
58+
--You can Normal Summon 1 Fiend monster during your Main Phase in addition to your Normal Summon/Set
59+
local e2=Effect.CreateEffect(c)
60+
e2:SetDescription(aux.Stringid(id,4))
61+
e2:SetType(EFFECT_TYPE_FIELD)
62+
e2:SetCode(EFFECT_EXTRA_SUMMON_COUNT)
63+
e2:SetTargetRange(LOCATION_HAND|LOCATION_MZONE,0)
64+
e2:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_FIEND))
65+
e2:SetReset(RESET_PHASE|PHASE_END)
66+
Duel.RegisterEffect(e2,tp)
67+
end
68+
function s.spconfilter(c,tp)
69+
return c:IsPreviousControler(tp) and c:IsRitualMonster()
70+
end
71+
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
72+
return eg:IsExists(s.spconfilter,1,nil,tp)
73+
end
74+
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
75+
local c=e:GetHandler()
76+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
77+
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
78+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,tp,0)
79+
end
80+
function s.spop(e,tp,eg,ep,ev,re,r,rp)
81+
local c=e:GetHandler()
82+
if c:IsRelateToEffect(e) then
83+
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
84+
end
85+
end

‎pre-release/c101303015.lua‎

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
--デューク・デーモン
2+
--Duke Archfiend
3+
--scripted by Naim
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Gains ATK equal to its Level x 200
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetType(EFFECT_TYPE_SINGLE)
9+
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
10+
e1:SetCode(EFFECT_UPDATE_ATTACK)
11+
e1:SetRange(LOCATION_MZONE)
12+
e1:SetValue(function(e,c) return c:GetLevel()*200 end)
13+
c:RegisterEffect(e1)
14+
--Send 1 "Archfiend" monster from your Deck to the GY, and if you do, increase the targeted monster's Level by the sent monster's
15+
local e2=Effect.CreateEffect(c)
16+
e2:SetDescription(aux.Stringid(id,0))
17+
e2:SetCategory(CATEGORY_TOGRAVE+CATEGORY_LVCHANGE)
18+
e2:SetType(EFFECT_TYPE_IGNITION)
19+
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
20+
e2:SetRange(LOCATION_MZONE)
21+
e2:SetCountLimit(1,id)
22+
e2:SetTarget(s.tgtg)
23+
e2:SetOperation(s.tgop)
24+
c:RegisterEffect(e2)
25+
--Special Summon this card
26+
local e3=Effect.CreateEffect(c)
27+
e3:SetDescription(aux.Stringid(id,1))
28+
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
29+
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
30+
e3:SetCode(EVENT_BATTLE_DESTROYED)
31+
e3:SetRange(LOCATION_GRAVE)
32+
e3:SetCountLimit(1,{id,1})
33+
e3:SetCondition(s.spcon)
34+
e3:SetTarget(s.sptg)
35+
e3:SetOperation(s.spop)
36+
c:RegisterEffect(e3)
37+
end
38+
s.listed_names={id}
39+
s.listed_series={SET_ARCHFIEND}
40+
function s.tgfilter(c)
41+
return c:IsSetCard(SET_ARCHFIEND) and c:IsMonster() and c:IsAbleToGrave() and not c:IsCode(id)
42+
end
43+
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
44+
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() and chkc:HasLevel() end
45+
if chk==0 then return Duel.IsExistingTarget(aux.FaceupFilter(Card.HasLevel),tp,LOCATION_MZONE,0,1,nil)
46+
and Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil) end
47+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
48+
local g=Duel.SelectTarget(tp,aux.FaceupFilter(Card.HasLevel),tp,LOCATION_MZONE,0,1,1,nil)
49+
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
50+
Duel.SetOperationInfo(0,CATEGORY_LVCHANGE,g,1,tp,1)
51+
end
52+
function s.tgop(e,tp,eg,ep,ev,re,r,rp)
53+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
54+
local sc=Duel.SelectMatchingCard(tp,s.tgfilter,tp,LOCATION_DECK,0,1,1,nil):GetFirst()
55+
if sc and Duel.SendtoGrave(sc,REASON_EFFECT)>0 and sc:IsLocation(LOCATION_GRAVE) then
56+
local tc=Duel.GetFirstTarget()
57+
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
58+
--Increase the targeted monster's Level by the sent monster's
59+
local e1=Effect.CreateEffect(e:GetHandler())
60+
e1:SetType(EFFECT_TYPE_SINGLE)
61+
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
62+
e1:SetCode(EFFECT_UPDATE_LEVEL)
63+
e1:SetValue(sc:GetLevel())
64+
e1:SetReset(RESET_EVENT|RESETS_STANDARD)
65+
tc:RegisterEffect(e1)
66+
end
67+
end
68+
end
69+
function s.spconfilter(c,tp)
70+
return c:IsPreviousControler(tp) and c:IsRitualMonster()
71+
end
72+
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
73+
return eg:IsExists(s.spconfilter,1,nil,tp)
74+
end
75+
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
76+
local c=e:GetHandler()
77+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
78+
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
79+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,tp,0)
80+
end
81+
function s.spop(e,tp,eg,ep,ev,re,r,rp)
82+
local c=e:GetHandler()
83+
if c:IsRelateToEffect(e) then
84+
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
85+
end
86+
end

‎pre-release/c101303016.lua‎

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
--ハイネス・デーモン
2+
--Highness Archfiend
3+
--scripted by pyrQ
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Add 2 "Archfiend" cards from your Deck to your hand, except "Highess Archfiend", also you cannot Special Summon from the Extra Deck for the rest of this turn, except "Archfiend" monsters
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
10+
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
11+
e1:SetProperty(EFFECT_FLAG_DELAY)
12+
e1:SetCode(EVENT_SUMMON_SUCCESS)
13+
e1:SetCountLimit(1,id)
14+
e1:SetCost(s.thcost)
15+
e1:SetTarget(s.thtg)
16+
e1:SetOperation(s.thop)
17+
c:RegisterEffect(e1)
18+
--Special Summon this card
19+
local e2=Effect.CreateEffect(c)
20+
e2:SetDescription(aux.Stringid(id,1))
21+
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
22+
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
23+
e2:SetCode(EVENT_BATTLE_DESTROYED)
24+
e2:SetRange(LOCATION_GRAVE)
25+
e2:SetCountLimit(1,{id,1})
26+
e2:SetCondition(s.spcon)
27+
e2:SetTarget(s.sptg)
28+
e2:SetOperation(s.spop)
29+
c:RegisterEffect(e2)
30+
end
31+
s.listed_names={id}
32+
s.listed_series={SET_ARCHFIEND}
33+
function s.thcostfilter(c,tp)
34+
return c:IsSetCard(SET_ARCHFIEND) and c:IsAbleToRemoveAsCost()
35+
end
36+
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
37+
if chk==0 then return Duel.IsExistingMatchingCard(s.thcostfilter,tp,LOCATION_GRAVE,0,1,nil) end
38+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
39+
local g=Duel.SelectMatchingCard(tp,s.thcostfilter,tp,LOCATION_GRAVE,0,1,1,nil)
40+
Duel.Remove(g,POS_FACEUP,REASON_COST)
41+
end
42+
function s.thfilter(c)
43+
return c:IsSetCard(SET_ARCHFIEND) and not c:IsCode(id) and c:IsAbleToHand()
44+
end
45+
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
46+
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,2,nil) end
47+
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,tp,LOCATION_DECK)
48+
end
49+
function s.thop(e,tp,eg,ep,ev,re,r,rp)
50+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
51+
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,2,2,nil)
52+
if #g==2 then
53+
Duel.SendtoHand(g,nil,REASON_EFFECT)
54+
Duel.ConfirmCards(1-tp,g)
55+
end
56+
--For the rest of this turn, you cannot Special Summon from the Extra Deck, except "Archfiend" monsters
57+
local e1=Effect.CreateEffect(e:GetHandler())
58+
e1:SetDescription(aux.Stringid(id,2))
59+
e1:SetType(EFFECT_TYPE_FIELD)
60+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
61+
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
62+
e1:SetTargetRange(1,0)
63+
e1:SetTarget(function(e,c) return c:IsLocation(LOCATION_EXTRA) and not c:IsSetCard(SET_ARCHFIEND) end)
64+
e1:SetReset(RESET_PHASE|PHASE_END)
65+
Duel.RegisterEffect(e1,tp)
66+
end
67+
function s.spconfilter(c,tp)
68+
return c:IsPreviousControler(tp) and c:IsRitualMonster()
69+
end
70+
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
71+
return eg:IsExists(s.spconfilter,1,nil,tp)
72+
end
73+
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
74+
local c=e:GetHandler()
75+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
76+
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
77+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,tp,0)
78+
end
79+
function s.spop(e,tp,eg,ep,ev,re,r,rp)
80+
local c=e:GetHandler()
81+
if c:IsRelateToEffect(e) then
82+
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
83+
end
84+
end

‎pre-release/c101303031.lua‎

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
--デス・エンペラー・デーモン
2+
--Doom Emperor Archfiend
3+
--scripted by pyrQ
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
c:EnableReviveLimit()
7+
Pendulum.AddProcedure(c)
8+
c:AddMustBeRitualSummoned()
9+
--Destroy both this card and 1 other face-up Spell/Trap on the field
10+
local e1=Effect.CreateEffect(c)
11+
e1:SetDescription(aux.Stringid(id,0))
12+
e1:SetCategory(CATEGORY_DESTROY)
13+
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
14+
e1:SetType(EFFECT_TYPE_IGNITION)
15+
e1:SetRange(LOCATION_PZONE)
16+
e1:SetCountLimit(1,id)
17+
e1:SetTarget(s.destg)
18+
e1:SetOperation(s.desop)
19+
c:RegisterEffect(e1)
20+
--Unaffected by other monsters' effects while in the Extra Monster Zone
21+
local e2=Effect.CreateEffect(c)
22+
e2:SetType(EFFECT_TYPE_SINGLE)
23+
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
24+
e2:SetCode(EFFECT_IMMUNE_EFFECT)
25+
e2:SetRange(LOCATION_EMZONE)
26+
e2:SetValue(function(e,te) return te:IsMonsterEffect() and te:GetOwner()~=e:GetOwner() end)
27+
c:RegisterEffect(e2)
28+
--Banish all monsters on the field, except those in the Extra Monster Zone
29+
local e3=Effect.CreateEffect(c)
30+
e3:SetDescription(aux.Stringid(id,1))
31+
e3:SetCategory(CATEGORY_REMOVE)
32+
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
33+
e3:SetProperty(EFFECT_FLAG_DELAY)
34+
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
35+
e3:SetCountLimit(1,{id,1})
36+
e3:SetCondition(function(e) local c=e:GetHandler() return c:IsRitualSummoned() and c:IsSummonLocation(LOCATION_EXTRA) end)
37+
e3:SetTarget(s.rmtg)
38+
e3:SetOperation(s.rmop)
39+
c:RegisterEffect(e3)
40+
--Special Summon 1 Fiend monster from your hand, Deck, GY, or banishment
41+
local e4=Effect.CreateEffect(c)
42+
e4:SetDescription(aux.Stringid(id,2))
43+
e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
44+
e4:SetType(EFFECT_TYPE_IGNITION)
45+
e4:SetRange(LOCATION_EMZONE)
46+
e4:SetCountLimit(1,{id,2})
47+
e4:SetTarget(s.sptg)
48+
e4:SetOperation(s.spop)
49+
c:RegisterEffect(e4)
50+
end
51+
s.listed_names={101303059} --"Throne of Archfiends"
52+
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
53+
local c=e:GetHandler()
54+
if chkc then return c:IsOnField() and c:IsSpellTrap() and c:IsFaceup() and chkc~=c end
55+
if chk==0 then return Duel.IsExistingTarget(aux.FaceupFilter(Card.IsSpellTrap),tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) end
56+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
57+
local g=Duel.SelectTarget(tp,aux.FaceupFilter(Card.IsSpellTrap),tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,c)
58+
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g+c,2,tp,0)
59+
end
60+
function s.desop(e,tp,eg,ep,ev,re,r,rp)
61+
local c=e:GetHandler()
62+
local tc=Duel.GetFirstTarget()
63+
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) then
64+
Duel.Destroy(Group.FromCards(c,tc),REASON_EFFECT)
65+
end
66+
end
67+
function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
68+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_MMZONE,LOCATION_MMZONE,1,nil) end
69+
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,PLAYER_ALL,LOCATION_MMZONE)
70+
end
71+
function s.rmop(e,tp,eg,ep,ev,re,r,rp)
72+
local g=Duel.GetFieldGroup(tp,LOCATION_MMZONE,LOCATION_MMZONE)
73+
if #g>0 then
74+
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
75+
end
76+
end
77+
function s.spfilter(c,e,tp)
78+
return c:IsRace(RACE_FIEND) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
79+
end
80+
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
81+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
82+
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE|LOCATION_REMOVED,0,1,nil,e,tp) end
83+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE|LOCATION_REMOVED)
84+
end
85+
function s.spop(e,tp,eg,ep,ev,re,r,rp)
86+
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
87+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
88+
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE|LOCATION_REMOVED,0,1,1,nil,e,tp)
89+
if #g>0 then
90+
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
91+
end
92+
end

‎pre-release/c101303059.lua‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
--スローン・オブ・デーモンズ
2+
--Throne of Archfiends
3+
--scripted by Naim
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
Ritual.AddProcGreater({handler=c,
7+
filter=s.ritualmonsterfilter,
8+
location=LOCATION_HAND|LOCATION_GRAVE|LOCATION_EXTRA|LOCATION_REMOVED})
9+
--Add this card from your GY or banishment to your hand
10+
local e1=Effect.CreateEffect(c)
11+
e1:SetDescription(aux.Stringid(id,1))
12+
e1:SetCategory(CATEGORY_TOHAND)
13+
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
14+
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
15+
e1:SetRange(LOCATION_GRAVE|LOCATION_REMOVED)
16+
e1:SetCountLimit(1,id)
17+
e1:SetCondition(function(e,tp) return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,101303031),tp,LOCATION_EXTRA,0,1,nil) end)
18+
e1:SetTarget(s.thtg)
19+
e1:SetOperation(s.thop)
20+
c:RegisterEffect(e1)
21+
end
22+
s.listed_names={101303031} --"Doom Emperor Archfiend"
23+
s.listed_series={SET_ARCHFIEND}
24+
function s.ritualmonsterfilter(c)
25+
return c:IsSetCard(SET_ARCHFIEND) and c:IsRitualMonster() and (c:IsFaceup() or c:IsLocation(LOCATION_HAND))
26+
end
27+
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
28+
local c=e:GetHandler()
29+
if chk==0 then return c:IsAbleToHand() end
30+
Duel.SetOperationInfo(0,CATEGORY_TOHAND,c,1,tp,0)
31+
end
32+
function s.thop(e,tp,eg,ep,ev,re,r,rp,chk)
33+
local c=e:GetHandler()
34+
if c:IsRelateToEffect(e) then
35+
Duel.SendtoHand(c,nil,REASON_EFFECT)
36+
end
37+
end

0 commit comments

Comments
 (0)