Skip to content

Commit 73ae12f

Browse files
committed
D/D/D Xyz
1 parent a31b11d commit 73ae12f

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

unofficial/c511015103.lua

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ function s.initial_effect(c)
1212
e1:SetOperation(s.activate)
1313
c:RegisterEffect(e1)
1414
end
15-
s.listed_series={0x10af}
15+
s.listed_series={SET_DDD}
1616
s.listed_names={47198668}
1717
function s.filter(c,e,tp)
18-
return c:IsType(TYPE_PENDULUM) and c:IsSetCard(0x10af) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
19-
and (c:IsLocation(LOCATION_GRAVE) and c:IsCanBeEffectTarget(e) or (c:IsFaceup() and not c:IsHasEffect(EFFECT_CANNOT_BE_EFFECT_TARGET)))
18+
return c:IsType(TYPE_PENDULUM) and c:IsSetCard(SET_DDD) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
19+
and (not c:IsLocation(LOCATION_GRAVE) or c:IsCanBeEffectTarget(e))
2020
end
2121
function s.xyzfilter(c,sg,e,tp)
2222
local ct=#sg
@@ -44,7 +44,7 @@ function s.rescon(mft,exft,ft)
4444
end
4545
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
4646
if chkc then return false end
47-
local mg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE+LOCATION_EXTRA,0,nil,e,tp)
47+
local mg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE|LOCATION_EXTRA,0,nil,e,tp)
4848
local ftex=Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_PENDULUM)
4949
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
5050
local ftt=Duel.GetUsableMZoneCount(tp)
@@ -69,14 +69,11 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
6969
if #sg<=0 then return false end
7070
g=sg
7171
end
72-
if Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0 then
73-
for tc in aux.Next(g) do
74-
if tc:IsLocation(LOCATION_MZONE) then
75-
s.disop(tc,e:GetHandler())
76-
end
72+
if Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)==0 then return end
73+
for tc in g:Iter() do
74+
if tc:IsLocation(LOCATION_MZONE) then
75+
s.disop(tc,e:GetHandler())
7776
end
78-
else
79-
return
8077
end
8178
Duel.AdjustInstantly(c)
8279
local xyzg=Duel.GetMatchingGroup(s.xyzfilter,tp,LOCATION_EXTRA,0,g,g,e,tp)

0 commit comments

Comments
 (0)