Commit 335d97ca authored by Crescent/毛虫's avatar Crescent/毛虫

Fix サプライズ・フュージョン

parent 2a56e423
Pipeline #41765 passed with stages
in 2 minutes and 33 seconds
...@@ -126,7 +126,7 @@ function s.cfilter(c,tp,chk) ...@@ -126,7 +126,7 @@ function s.cfilter(c,tp,chk)
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=Duel.GetReleaseGroup(tp,false,REASON_EFFECT) local rg=Duel.GetReleaseGroup(tp,false,REASON_EFFECT)
if chk==0 then return rg:Filter(s.cfilter,nil,tp,true) if chk==0 then return rg:IsExists(s.cfilter,1,nil,tp,true)
and not Duel.IsPlayerAffectedByEffect(tp,59822133) end and not Duel.IsPlayerAffectedByEffect(tp,59822133) end
Duel.SetOperationInfo(0,CATEGORY_RELEASE,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_RELEASE,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,2,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,2,0,0)
...@@ -136,11 +136,8 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -136,11 +136,8 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_EFFECT) local rg=Duel.GetReleaseGroup(tp,false,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local srg=nil local srg=nil
if Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil,tp,true) then local chk=Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil,tp,true)
srg=rg:FilterSelect(tp,s.cfilter,1,1,nil,tp,true) srg=rg:FilterSelect(tp,s.cfilter,1,1,nil,tp,chk)
else
srg=rg:FilterSelect(tp,s.cfilter,1,1,nil,tp,false)
end
if srg and srg:GetCount()>0 then if srg and srg:GetCount()>0 then
local rc=srg:GetFirst() local rc=srg:GetFirst()
local level=rc:GetLevel() local level=rc:GetLevel()
......
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