Commit b49f7432 authored by wind2009's avatar wind2009

Fix

parent 69b5b807
Pipeline #41731 canceled with stages
in 33 minutes and 30 seconds
......@@ -27,7 +27,7 @@ function s.initial_effect(c)
s.shadoll_flip_effect=e1
end
function s.counterfilter(c)
return not c:IsSummonLocation(LOCATION_EXTRA) or c:IsSetCard(0x9d)
return not c:IsSummonLocation(LOCATION_EXTRA) or c:IsSetCard(0x9d) and c:IsFaceup()
end
function s.rfilter(c)
return c:IsType(TYPE_FLIP) and c:IsSetCard(0x9d)
......
......@@ -119,14 +119,14 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function s.cfilter(c,e,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)
function s.cfilter(c,tp,chk)
return c:IsType(TYPE_FUSION) and c:IsReleasableByEffect() and not chk
or (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 rg:Filter(s.cfilter,nil,tp,true)
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,8 +135,13 @@ 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)
if srg:GetCount()>0 then
local srg=nil
if Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil,tp,true) then
srg=rg:FilterSelect(tp,s.cfilter,1,1,nil,tp,true)
else
srg=rg:FilterSelect(tp,s.cfilter,1,1,nil,tp,false)
end
if srg and srg:GetCount()>0 then
local rc=srg:GetFirst()
local level=rc:GetLevel()
if Duel.Release(rc,REASON_EFFECT)>0
......
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