Skip to content

Commit 5bbf4d7

Browse files
committed
Script updates
- replaced card passcodes in some scripts with their corresponding constants - general modernization for the affected scripts
1 parent 1997ecc commit 5bbf4d7

File tree

10 files changed

+129
-133
lines changed

10 files changed

+129
-133
lines changed

official/c11790356.lua

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@
22
--Buster Dragon
33
local s,id=GetID()
44
function s.initial_effect(c)
5-
--synchro summon
6-
Synchro.AddProcedure(c,nil,1,1,Synchro.NonTuner(nil),1,99)
75
c:EnableReviveLimit()
8-
--Change race
6+
--Synchro Summon procedure: 1 Tuner + 1+ non-Tuner monsters
7+
Synchro.AddProcedure(c,nil,1,1,Synchro.NonTuner(nil),1,99)
8+
--All monsters your opponent controls become Dragons
99
local e1=Effect.CreateEffect(c)
1010
e1:SetType(EFFECT_TYPE_FIELD)
1111
e1:SetCode(EFFECT_CHANGE_RACE)
1212
e1:SetRange(LOCATION_MZONE)
1313
e1:SetTargetRange(0,LOCATION_MZONE)
1414
e1:SetValue(RACE_DRAGON)
1515
c:RegisterEffect(e1)
16-
--spsummon
16+
--Special Summon 1 "Buster Blader" from the GY
1717
local e2=Effect.CreateEffect(c)
18+
e2:SetDescription(aux.Stringid(id,0))
1819
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
1920
e2:SetType(EFFECT_TYPE_IGNITION)
2021
e2:SetRange(LOCATION_MZONE)
@@ -24,50 +25,48 @@ function s.initial_effect(c)
2425
e2:SetTarget(s.sptg)
2526
e2:SetOperation(s.spop)
2627
c:RegisterEffect(e2)
27-
--Equip
28+
--Equip 1 "Destruction Sword" monster from your GY to 1 "Buster Blader" monster you control
2829
local e3=Effect.CreateEffect(c)
30+
e3:SetDescription(aux.Stringid(id,1))
2931
e3:SetType(EFFECT_TYPE_QUICK_O)
3032
e3:SetCategory(CATEGORY_EQUIP)
3133
e3:SetCode(EVENT_FREE_CHAIN)
32-
e3:SetHintTiming(0,TIMING_END_PHASE)
3334
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
34-
e3:SetCountLimit(1)
3535
e3:SetRange(LOCATION_MZONE)
36-
e3:SetCondition(s.condition)
36+
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER_E)
37+
e3:SetCountLimit(1)
38+
e3:SetCondition(function(e,tp) return Duel.IsTurnPlayer(1-tp) end)
3739
e3:SetTarget(s.target)
3840
e3:SetOperation(s.operation)
3941
c:RegisterEffect(e3)
4042
end
41-
s.listed_names={78193831}
42-
s.listed_series={0xd7,0xd6}
43+
s.listed_names={CARD_BUSTER_BLADER}
44+
s.listed_series={SET_BUSTER_BLADER,SET_DESTRUCTION_SWORD}
4345
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
44-
return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0xd7),tp,LOCATION_MZONE,0,1,nil)
46+
return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_BUSTER_BLADER),tp,LOCATION_MZONE,0,1,nil)
4547
end
46-
function s.filter(c,e,tp)
47-
return c:IsCode(78193831) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
48+
function s.spfilter(c,e,tp)
49+
return c:IsCode(CARD_BUSTER_BLADER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
4850
end
4951
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
50-
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end
52+
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end
5153
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
52-
and Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
54+
and Duel.IsExistingTarget(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
5355
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
54-
local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
55-
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
56+
local g=Duel.SelectTarget(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
57+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,tp,0)
5658
end
5759
function s.spop(e,tp,eg,ep,ev,re,r,rp)
5860
local tc=Duel.GetFirstTarget()
5961
if tc:IsRelateToEffect(e) then
6062
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
6163
end
6264
end
63-
function s.condition(e,tp,eg,ep,ev,re,r,rp)
64-
return Duel.GetTurnPlayer()~=tp
65-
end
6665
function s.cfilter(c)
67-
return c:IsSetCard(0xd7) and c:IsMonster() and c:IsFaceup()
66+
return c:IsSetCard(SET_BUSTER_BLADER) and c:IsMonster() and c:IsFaceup()
6867
end
6968
function s.filter2(c)
70-
return c:IsSetCard(0xd6) and c:IsMonster() and not c:IsForbidden()
69+
return c:IsSetCard(SET_DESTRUCTION_SWORD) and c:IsMonster() and not c:IsForbidden()
7170
end
7271
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
7372
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.cfilter(chkc) end
@@ -82,8 +81,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
8281
local tc=Duel.GetFirstTarget()
8382
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
8483
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
85-
local sg=Duel.SelectMatchingCard(tp,s.filter2,tp,LOCATION_GRAVE,0,1,1,nil)
86-
local sc=sg:GetFirst()
84+
local sc=Duel.SelectMatchingCard(tp,s.filter2,tp,LOCATION_GRAVE,0,1,1,nil):GetFirst()
8785
if sc then
8886
if not Duel.Equip(tp,sc,tc,true) then return end
8987
local e1=Effect.CreateEffect(e:GetHandler())
@@ -97,4 +95,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
9795
end
9896
function s.eqlimit(e,c)
9997
return e:GetLabelObject()==c
100-
end
98+
end

official/c11827244.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ function s.initial_effect(c)
77
c:RegisterEffect(e1)
88
end
99
function s.fextra(e,tp,mg)
10-
if not Duel.IsPlayerAffectedByEffect(tp,69832741) then
10+
if not Duel.IsPlayerAffectedByEffect(tp,CARD_SPIRIT_ELIMINATION) then
1111
return Duel.GetMatchingGroup(Fusion.IsMonsterFilter(Card.IsAbleToRemove),tp,LOCATION_GRAVE,0,nil)
1212
end
1313
return nil
1414
end
1515
function s.extratg(e,tp,eg,ep,ev,re,r,rp,chk)
1616
if chk==0 then return true end
17-
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,LOCATION_MZONE+LOCATION_GRAVE)
18-
end
17+
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,LOCATION_MZONE|LOCATION_GRAVE)
18+
end

official/c12289247.lua

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
local s,id=GetID()
44
function s.initial_effect(c)
55
Pendulum.AddProcedure(c)
6-
--Place card in the pendulum zone/special summon
6+
--Take 1 "Timegazer Magician" and either place it in the Pendulum zone or Special Summon it
77
local e1=Effect.CreateEffect(c)
88
e1:SetDescription(aux.Stringid(id,0))
99
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON)
@@ -13,7 +13,7 @@ function s.initial_effect(c)
1313
e1:SetTarget(s.rptg)
1414
e1:SetOperation(s.rpop)
1515
c:RegisterEffect(e1)
16-
--Special Summon itself
16+
--Special Summon this card from your hand then you can Special Summon 1 monster from your hand
1717
local e2=Effect.CreateEffect(c)
1818
e2:SetDescription(aux.Stringid(id,3))
1919
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
@@ -25,7 +25,7 @@ function s.initial_effect(c)
2525
e2:SetTarget(s.sptg)
2626
e2:SetOperation(s.spop)
2727
c:RegisterEffect(e2)
28-
--Special Summon Z-Arc
28+
--Special Summon 1 "Supreme King Z-Arc" from your Extra Deck
2929
local e3=Effect.CreateEffect(c)
3030
e3:SetDescription(aux.Stringid(id,5))
3131
e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
@@ -36,16 +36,16 @@ function s.initial_effect(c)
3636
e3:SetOperation(s.hnop)
3737
c:RegisterEffect(e3)
3838
end
39-
s.listed_series={0x10f2,0x2073,0x2017,0x1046}
40-
s.listed_names={20409757,13331639}
39+
s.listed_series={SET_PENDULUM_DRAGON,SET_XYZ_DRAGON,SET_SYNCHRO_DRAGON,SET_FUSION_DRAGON}
40+
s.listed_names={CARD_ZARC,20409757} --"Timegazer Magician"
4141
function s.rpfilter(c,e,tp)
4242
return c:IsCode(20409757) and (not c:IsForbidden()
4343
or (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)))
4444
end
4545
function s.rptg(e,tp,eg,ep,ev,re,r,rp,chk)
46-
if chk==0 then return Duel.IsExistingMatchingCard(s.rpfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end
46+
if chk==0 then return Duel.IsExistingMatchingCard(s.rpfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end
4747
Duel.SetOperationInfo(0,CATEGORY_DESTROY,e:GetHandler(),1,0,0)
48-
Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND)
48+
Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK|LOCATION_HAND)
4949
end
5050
function s.rpop(e,tp,eg,ep,ev,re,r,rp)
5151
local c=e:GetHandler()
@@ -67,8 +67,7 @@ function s.rpop(e,tp,eg,ep,ev,re,r,rp)
6767
end
6868
end
6969
function s.spcfilter(c,tp)
70-
return c:IsReason(REASON_BATTLE+REASON_EFFECT)
71-
and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_ONFIELD)
70+
return c:IsReason(REASON_BATTLE|REASON_EFFECT) and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_ONFIELD)
7271
end
7372
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
7473
return eg:IsExists(s.spcfilter,1,nil,tp)
@@ -95,8 +94,9 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
9594
end
9695
end
9796
function s.cfilter(c)
98-
return (c:IsSetCard(0x10f2) or c:IsSetCard(0x2073) or c:IsSetCard(0x2017) or c:IsSetCard(0x1046)) and c:IsMonster()
99-
and c:IsAbleToRemoveAsCost() and (not c:IsLocation(LOCATION_MZONE) or c:IsFaceup()) and (c:IsLocation(LOCATION_HAND) or aux.SpElimFilter(c,true,true))
97+
return c:IsSetCard({SET_PENDULUM_DRAGON,SET_XYZ_DRAGON,SET_SYNCHRO_DRAGON,SET_FUSION_DRAGON}) and c:IsMonster()
98+
and c:IsAbleToRemoveAsCost() and (not c:IsLocation(LOCATION_MZONE) or c:IsFaceup())
99+
and (c:IsLocation(LOCATION_HAND) or aux.SpElimFilter(c,true,true))
100100
end
101101
function s.rescon(checkfunc)
102102
return function(sg,e,tp,mg)
@@ -105,13 +105,13 @@ function s.rescon(checkfunc)
105105
end
106106
end
107107
function s.hnfilter(c,e,tp,sg)
108-
return c:IsCode(13331639) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial()
108+
return c:IsCode(CARD_ZARC) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial()
109109
and Duel.GetLocationCountFromEx(tp,tp,sg and (sg+e:GetHandler()) or nil,c)>0
110110
end
111111
function s.hncost(e,tp,eg,ep,ev,re,r,rp,chk)
112112
local c=e:GetHandler()
113-
local mg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE,0,c)
114-
local checkfunc=aux.PropertyTableFilter(Card.GetSetCard,0x10f2,0x2073,0x2017,0x1046)
113+
local mg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE|LOCATION_GRAVE,0,c)
114+
local checkfunc=aux.PropertyTableFilter(Card.GetSetCard,SET_PENDULUM_DRAGON,SET_XYZ_DRAGON,SET_SYNCHRO_DRAGON,SET_FUSION_DRAGON)
115115
if chk==0 then return c:IsAbleToRemoveAsCost() and aux.SelectUnselectGroup(mg,e,tp,4,4,s.rescon(checkfunc),0) end
116116
local sg=aux.SelectUnselectGroup(mg,e,tp,4,4,s.rescon(checkfunc),1,tp,HINTMSG_REMOVE,s.rescon(checkfunc))+c
117117
Duel.Remove(sg,POS_FACEUP,REASON_COST)
@@ -126,4 +126,4 @@ function s.hnop(e,tp,eg,ep,ev,re,r,rp)
126126
if #g>0 then
127127
Duel.SpecialSummon(g,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)
128128
end
129-
end
129+
end

official/c12652643.lua

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
--古代の機械究極巨人
2+
--Ultimate Ancient Gear Golem
23
local s,id=GetID()
34
function s.initial_effect(c)
4-
--fusion material
55
c:EnableReviveLimit()
6-
Fusion.AddProcMixN(c,true,true,83104731,1,aux.FilterBoolFunctionEx(Card.IsSetCard,0x7),2)
6+
--Fusion Materials: "Ancient Gear Golem" + 2 "Ancient Gear" monsters
7+
Fusion.AddProcMixN(c,true,true,CARD_ANCIENT_GEAR_GOLEM,1,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_ANCIENT_GEAR),2)
78
--spsummon condition
89
local e1=Effect.CreateEffect(c)
910
e1:SetType(EFFECT_TYPE_SINGLE)
@@ -16,7 +17,7 @@ function s.initial_effect(c)
1617
e2:SetType(EFFECT_TYPE_SINGLE)
1718
e2:SetCode(EFFECT_PIERCE)
1819
c:RegisterEffect(e2)
19-
--actlimit
20+
--If this card attacks, your opponent cannot activate Spell/Trap Cards until the end of the Damage Step
2021
local e3=Effect.CreateEffect(c)
2122
e3:SetType(EFFECT_TYPE_FIELD)
2223
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
@@ -26,7 +27,7 @@ function s.initial_effect(c)
2627
e3:SetValue(s.aclimit)
2728
e3:SetCondition(s.actcon)
2829
c:RegisterEffect(e3)
29-
--Special summon
30+
--Special Summon 1 "Ancient Gear Golem" from your GY
3031
local e4=Effect.CreateEffect(c)
3132
e4:SetDescription(aux.Stringid(id,0))
3233
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
@@ -37,29 +38,29 @@ function s.initial_effect(c)
3738
e4:SetOperation(s.spop)
3839
c:RegisterEffect(e4)
3940
end
40-
s.listed_series={0x7}
41-
s.listed_names={83104731}
42-
s.material_setcode=0x7
41+
s.listed_series={SET_ANCIENT_GEAR}
42+
s.listed_names={CARD_ANCIENT_GEAR_GOLEM}
43+
s.material_setcode=SET_ANCIENT_GEAR
4344
function s.aclimit(e,re,tp)
4445
return re:IsHasType(EFFECT_TYPE_ACTIVATE)
4546
end
4647
function s.actcon(e)
4748
return Duel.GetAttacker()==e:GetHandler()
4849
end
4950
function s.spfilter(c,e,tp)
50-
return c:IsCode(83104731) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
51+
return c:IsCode(CARD_ANCIENT_GEAR_GOLEM) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
5152
end
5253
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
5354
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end
5455
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
5556
and Duel.IsExistingTarget(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
5657
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
5758
local g=Duel.SelectTarget(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
58-
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
59+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,tp,0)
5960
end
6061
function s.spop(e,tp,eg,ep,ev,re,r,rp)
6162
local tc=Duel.GetFirstTarget()
62-
if tc and tc:IsRelateToEffect(e) then
63+
if tc:IsRelateToEffect(e) then
6364
Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)
6465
end
65-
end
66+
end

official/c1278431.lua

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
--Scripted by Eerie Code
44
local s,id=GetID()
55
function s.initial_effect(c)
6-
--search
6+
--Add 1 "Ancient Gear Golem" or a Spell/Trap that lists it it from your Deck to your hand
77
local e1=Effect.CreateEffect(c)
88
e1:SetDescription(aux.Stringid(id,0))
99
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
@@ -14,7 +14,7 @@ function s.initial_effect(c)
1414
e1:SetTarget(s.thtg)
1515
e1:SetOperation(s.thop)
1616
c:RegisterEffect(e1)
17-
--actlimit
17+
--If this card attacks, your opponent cannot activate Spell/Trap Cards until the end of the Damage Step
1818
local e2=Effect.CreateEffect(c)
1919
e2:SetType(EFFECT_TYPE_FIELD)
2020
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
@@ -24,9 +24,9 @@ function s.initial_effect(c)
2424
e2:SetValue(s.aclimit)
2525
e2:SetCondition(s.actcon)
2626
c:RegisterEffect(e2)
27-
--spsummon
27+
--Special Summon up to 3 "Ancient Gear Golem" and/or "Ancient Gear Golem - Ultimate Pound" from your hand
2828
local e3=Effect.CreateEffect(c)
29-
e3:SetDescription(aux.Stringid(51205763,1))
29+
e3:SetDescription(aux.Stringid(id,1))
3030
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
3131
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
3232
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
@@ -36,13 +36,13 @@ function s.initial_effect(c)
3636
e3:SetOperation(s.spop)
3737
c:RegisterEffect(e3)
3838
end
39-
s.listed_names={83104731}
39+
s.listed_names={CARD_ANCIENT_GEAR_GOLEM,95735217} --"Ancient Gear Golem - Ultimate Pound"
4040
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
4141
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
42-
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
42+
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST|REASON_DISCARD)
4343
end
4444
function s.thfilter(c)
45-
return (c:IsCode(83104731) or (c:IsSpellTrap() and c:ListsCode(83104731))) and c:IsAbleToHand()
45+
return (c:IsCode(CARD_ANCIENT_GEAR_GOLEM) or (c:IsSpellTrap() and c:ListsCode(CARD_ANCIENT_GEAR_GOLEM))) and c:IsAbleToHand()
4646
end
4747
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
4848
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
@@ -68,7 +68,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp)
6868
and c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()==1-tp
6969
end
7070
function s.spfilter(c,e,tp)
71-
return c:IsCode(83104731,95735217) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
71+
return c:IsCode(CARD_ANCIENT_GEAR_GOLEM,95735217) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
7272
end
7373
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
7474
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end
@@ -83,5 +83,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
8383
if #g>0 then
8484
Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP)
8585
end
86-
end
87-
86+
end

0 commit comments

Comments
 (0)