Commit 48155f4d authored by GuGu's avatar GuGu

Update c22292009.lua

parent 510ad86e
Pipeline #42367 passed with stage
in 18 seconds
......@@ -66,8 +66,7 @@ function c22292009.activate(e,tp,eg,ep,ev,re,r,rp)
e3:SetCondition(c22292009.descon)
e3:SetOperation(c22292009.desop)
Duel.RegisterEffect(e3,tp)
local mg=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
local b1=Duel.IsExistingMatchingCard(c22292009.synfilter,tp,LOCATION_EXTRA,0,1,nil,mg)
local b1=Duel.IsExistingMatchingCard(c22292009.synfilter,tp,LOCATION_EXTRA,0,1,nil)
local b2=Duel.IsExistingMatchingCard(c22292009.xyzfilter,tp,LOCATION_EXTRA,0,1,nil)
local b3=Duel.IsExistingMatchingCard(c22292009.linkfilter,tp,LOCATION_EXTRA,0,1,nil)
local b4=Duel.IsExistingMatchingCard(c22292009.advfilter,tp,LOCATION_HAND,0,1,nil)
......@@ -99,11 +98,11 @@ function c22292009.activate(e,tp,eg,ep,ev,re,r,rp)
local op=Duel.SelectOption(tp,table.unpack(ops))
local sel=opval[op]
if sel==1 then
local g=Duel.GetMatchingGroup(c22292009.synfilter,tp,LOCATION_EXTRA,0,nil,mg)
local g=Duel.GetMatchingGroup(c22292009.synfilter,tp,LOCATION_EXTRA,0,nil)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sc=g:Select(tp,1,1,nil):GetFirst()
Duel.SynchroSummon(tp,sc,nil,mg)
Duel.SynchroSummon(tp,sc,nil)
sc:RegisterFlagEffect(22292009,RESET_EVENT+RESETS_STANDARD,0,1,fid)
end
elseif sel==2 then
......@@ -141,8 +140,8 @@ function c22292009.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function c22292009.synfilter(c,mg)
return c:IsSynchroSummonable(nil,mg)
function c22292009.synfilter(c)
return c:IsSynchroSummonable(nil)
end
function c22292009.xyzfilter(c)
return c:IsXyzSummonable(nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment