Skip to content

Commit a3ac82c

Browse files
authored
"D/D/D/D Great Dimension King Arc Crisis" fix
Fixed some edge cases with the Pendulum effect where the player could Special Summon from the face-up Extra Deck and deliberately block the only Main Monster Zone that could've been used to Special Summon from the Main Deck.
1 parent da10c3c commit a3ac82c

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

pre-release/c101302104.lua

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,20 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
128128
local sg=aux.SelectUnselectGroup(g,e,tp,1,ft,s.rescon(mmz_ct,linkmz_ct),1,tp,HINTMSG_SPSUMMON)
129129
if #sg==0 then return end
130130
local fup,fdown=sg:Split(aux.FaceupFilter(Card.IsLocation,LOCATION_EXTRA),nil)
131-
for fup_c in fup:Iter() do
132-
Duel.SpecialSummonStep(fup_c,0,tp,tp,false,false,POS_FACEUP)
133-
end
134131
local fdown_main,fdown_ex=fdown:Split(Card.IsLocation,nil,LOCATION_DECK)
135-
for fdown_main_c in fdown_main:Iter() do
136-
Duel.SpecialSummonStep(fdown_main_c,0,tp,tp,false,false,POS_FACEUP)
132+
local priority_0,priority_1
133+
if linkmz_ct<mmz_ct then
134+
priority_0=fup
135+
priority_1=fdown_main
136+
else
137+
priority_0=fdown_main
138+
priority_1=fup
139+
end
140+
for prio0_c in priority_0:Iter() do
141+
Duel.SpecialSummonStep(prio0_c,0,tp,tp,false,false,POS_FACEUP)
142+
end
143+
for prio1_c in priority_1:Iter() do
144+
Duel.SpecialSummonStep(prio1_c,0,tp,tp,false,false,POS_FACEUP)
137145
end
138146
for fdown_ex_c in fdown_ex:Iter() do
139147
Duel.SpecialSummonStep(fdown_ex_c,0,tp,tp,false,false,POS_FACEUP)

0 commit comments

Comments
 (0)