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