Commit 3e569895 authored by gg123gg's avatar gg123gg Committed by GitHub

修复

parent d0d91d60
......@@ -39,10 +39,10 @@ function c12008009.initial_effect(c)
c:RegisterEffect(e2)
end
function c12008009.sprfilter(c,sc)
return c:IsCanBeLinkMaterial(sc) and c:IsRace(RACE_SEASERPENT) and Duel.IsExistingMatchingCard(c12008009.sprfilter1,tp,LOCATION_MZONE+LOCATION_HAND,0,1,c) and Duel.GetLocationCountFromEx(tp,tp,c,TYPE_LINK)>0 and c:IsAbleToRemoveAsCost()
return c:IsRace(RACE_SEASERPENT) and Duel.IsExistingMatchingCard(c12008009.sprfilter1,tp,LOCATION_MZONE+LOCATION_HAND,0,1,c) and c:IsAbleToRemoveAsCost()
end
function c12008009.sprfilter1(c,sc)
return c:IsCanBeLinkMaterial(sc) and c:IsRace(RACE_MACHINE) and Duel.GetLocationCountFromEx(tp,tp,c,TYPE_LINK)>0 and c:IsAbleToRemoveAsCost()
return c:IsRace(RACE_MACHINE) and Duel.GetLocationCountFromEx(tp,tp,c,TYPE_LINK)>0 and c:IsAbleToRemoveAsCost() and Duel.GetLocationCountFromEx(tp,tp,Group.FromCards(c,sc),TYPE_LINK)>0
end
function c12008009.linkcon(e,c)
if c==nil then return true end
......@@ -58,7 +58,7 @@ function c12008009.linkop(e,tp,eg,ep,ev,re,r,rp,c)
local cc1=g:Select(tp,1,1,nil)
local cc2=Duel.SelectMatchingCard(tp,c12008009.sprfilter1,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,cc1)
cc1:Merge(cc2)
Duel.Remove(cc1,POS_FACEUP,REASON_EFFECT)
Duel.SendtoGrave(cc1,REASON_EFFECT+REASON_RELEASE)
end
end
function c12008009.filter(c)
......
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