Commit f9701cb6 authored by 八宫一月's avatar 八宫一月

fusionpro update

parent 31f0ef71
Pipeline #41165 passed with stages
in 4 minutes and 3 seconds
...@@ -75,18 +75,22 @@ function s.spcon(e,c) ...@@ -75,18 +75,22 @@ function s.spcon(e,c)
and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil)
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 g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(s.spfilter,nil,tp,c) local hg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_HAND,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) local tc1=hg:SelectUnselect(nil,tp,false,true,1,1)
local tc=g:SelectUnselect(nil,tp,false,true,1,1) if tc1 then
if tc then local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(s.spfilter,nil,tp,c)
e:SetLabelObject(tc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
return true local tc2=g:SelectUnselect(nil,tp,false,true,1,1)
else return false end if tc2 then
Duel.SendtoGrave(tc1,REASON_SPSUMMON+REASON_DISCARD)
e:SetLabelObject(tc2)
return true
else return false end
end
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)
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD+RESET_PHASE+PHASE_END,0,1)
local g=e:GetLabelObject() local g=e:GetLabelObject()
Duel.DiscardHand(tp,s.cfilter,1,1,REASON_SPSUMMON+REASON_DISCARD)
Duel.Release(g,REASON_SPSUMMON) Duel.Release(g,REASON_SPSUMMON)
end end
function s.setfilter(c) function s.setfilter(c)
......
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