Commit 6e965f01 authored by Amiya's avatar Amiya

修复

parent 8db77b1c
Pipeline #43600 passed with stages
in 2 minutes and 4 seconds
......@@ -51,17 +51,17 @@ function s.desfilter(c,e)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and Duel.GetMZoneCount(e:GetControler(),c)>0
and c:IsCanBeEffectTarget(e)
end
function s.gcheck(g,tp)
function s.gcheck2(g,tp)
return g:FilterCount(Card.IsControler,nil,tp)==g:FilterCount(Card.IsControler,nil,1-tp)
end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
local g=Duel.GetMatchingGroup(s.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,e)
if chk==0 then return g:CheckSubGroup(s.gcheck,2,2,tp)
if chk==0 then return g:CheckSubGroup(s.gcheck2,2,2,tp)
and not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.IsPlayerCanSpecialSummonMonster(tp,id+o,0,TYPES_TOKEN_MONSTER,800,800,2,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP_DEFENSE)
and Duel.IsPlayerCanSpecialSummonMonster(tp,id+o,0,TYPES_TOKEN_MONSTER,800,800,2,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP_DEFENSE,1-tp) end
local sg=g:SelectSubGroup(tp,s.gcheck,false,2,2,tp)
local sg=g:SelectSubGroup(tp,s.gcheck2,false,2,2,tp)
Duel.SetTargetCard(sg)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,#sg,0,0)
end
......
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