Commit 0ccdc5a1 authored by GuGu's avatar GuGu

Update c431405.lua

parent 4fa573de
Pipeline #29182 passed with stage
in 7 seconds
...@@ -49,8 +49,8 @@ function s.initial_effect(c) ...@@ -49,8 +49,8 @@ function s.initial_effect(c)
e4:SetOperation(s.op) e4:SetOperation(s.op)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function s.fselect(g,tp) function s.fselect(g,tp,sc)
return Duel.GetMZoneCount(tp,g,tp)>0 return g:GetCount()==2 and Duel.GetLocationCountFromEx(tp,tp,g,sc)>0
end end
function s.spfilter(c) function s.spfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsReleasable() and c:IsRace(RACE_FAIRY) return c:IsType(TYPE_MONSTER) and c:IsReleasable() and c:IsRace(RACE_FAIRY)
...@@ -59,12 +59,12 @@ function s.spcon(e,c) ...@@ -59,12 +59,12 @@ function s.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local rg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE,0,nil) local rg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE,0,nil)
return rg:CheckSubGroup(s.fselect,2,2,tp) return rg:CheckSubGroup(s.fselect,2,2,tp,c)
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE,0,nil) local rg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,s.fselect,true,2,2,tp) local sg=rg:SelectSubGroup(tp,s.fselect,true,2,2,tp,c)
if sg then if sg then
sg:KeepAlive() sg:KeepAlive()
e:SetLabelObject(sg) e:SetLabelObject(sg)
...@@ -73,9 +73,8 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) ...@@ -73,9 +73,8 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp,c) function s.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject() local g=e:GetLabelObject()
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup() g:DeleteGroup()
c:CompleteProcedure()
end end
-- --
function s.filter1(c,e,tp) function s.filter1(c,e,tp)
......
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