Commit 95e92b29 authored by Mr.Tan's avatar Mr.Tan

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

parent 62426033
Pipeline #41704 failed with stages
in 2 minutes and 38 seconds
......@@ -119,14 +119,13 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function s.cfilter(c,e,tp)
function s.cfilter(c,tp)
return c:IsType(TYPE_FUSION) and c:IsReleasableByEffect()
and Duel.GetMZoneCount(tp,c)>1
and Duel.IsPlayerCanSpecialSummonMonster(tp,id+o,0,TYPES_TOKEN_MONSTER,0,0,c:GetLevel(),RACE_SPELLCASTER,ATTRIBUTE_DARK)
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=Duel.GetReleaseGroup(tp,false,REASON_EFFECT)
if chk==0 then return rg:Filter(s.cfilter,nil,e,tp)
if chk==0 then return Duel.CheckReleaseGroup(tp,s.cfilter,1,nil,tp)
and not Duel.IsPlayerAffectedByEffect(tp,59822133) end
Duel.SetOperationInfo(0,CATEGORY_RELEASE,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,2,0,0)
......@@ -135,7 +134,7 @@ end
function s.spop(e,tp,eg,ep,ev,re,r,rp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local srg=rg:FilterSelect(tp,s.cfilter,1,1,nil,e,tp)
local srg=rg:FilterSelect(tp,s.cfilter,1,1,nil,tp)
if srg:GetCount()>0 then
local rc=srg:GetFirst()
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