Commit 2112ccd1 authored by GuGu's avatar GuGu

Update c1100008.lua

parent 48155f4d
Pipeline #42368 passed with stage
in 6 seconds
......@@ -29,22 +29,16 @@ function c1100008.initial_effect(c)
--
end
--
function c1100008.exfilter1(c,tp,rc,mg,opchk)
function c1100008.exfilter1(c,tp,rc,opchk)
return Duel.GetLocationCountFromEx(tp,tp,rc,c)>0
and (opchk or Duel.IsExistingMatchingCard(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,1,c,nil,mg))
and (opchk or Duel.IsExistingMatchingCard(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,1,nil,nil) or Duel.IsExistingMatchingCard(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,1,nil,c))
end
function c1100008.spfilter1(c,e,tp,rc,chkrel,chknotrel,tgchk,opchk)
if not (c:IsCode(20013) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)) then return false end
local mg=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if mg:IsExists(Card.GetHandSynchro,1,nil) then
local mg2=Duel.GetMatchingGroup(nil,tp,LOCATION_HAND,0,nil)
if mg2:GetCount()>0 then mg:Merge(mg2) end
end
mg:AddCard(c)
if tgchk then
return c1100008.exfilter1(c,tp,nil,mg,opchk)
return c1100008.exfilter1(c,tp,nil,opchk)
else
return (chkrel and c1100008.exfilter1(c,tp,rc,mg-rc)) or (chknotrel and c1100008.exfilter1(c,tp,nil,mg))
return (chkrel and c1100008.exfilter1(c,tp,rc)) or (chknotrel and c1100008.exfilter1(c,tp,nil))
end
end
function c1100008.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
......
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