Commit 14e96d1b authored by nanahira's avatar nanahira

fix

parent 1a90474a
......@@ -32,19 +32,19 @@ function rsvo.LPLinkFunction(c)
e1:SetValue(SUMMON_TYPE_LINK)
c:RegisterEffect(e1)
end
function rsvo.lmfilter(c,lc)
function rsvo.lmfilter(c,lc,tp)
local tp=lc:GetControler()
return c:IsFaceup() and c:IsCanBeLinkMaterial(lc) and c:IsLinkRace(RACE_CYBERSE+RACE_MACHINE) and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_LMATERIAL) and Duel.GetLocationCountFromEx(tp,tp,c)>0
end
function rsvo.linkcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.IsExistingMatchingCard(rsvo.lmfilter,tp,LOCATION_MZONE,0,1,nil,c) and Duel.CheckLPCost(tp,1500)
return Duel.IsExistingMatchingCard(rsvo.lmfilter,tp,LOCATION_MZONE,0,1,nil,c,tp) and Duel.CheckLPCost(tp,1500)
end
function rsvo.linkop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.PayLPCost(tp,1500)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_LMATERIAL)
local mg=Duel.SelectMatchingCard(tp,rsvo.lmfilter,tp,LOCATION_MZONE,0,1,1,nil,c)
local mg=Duel.SelectMatchingCard(tp,rsvo.lmfilter,tp,LOCATION_MZONE,0,1,1,nil,c,tp)
c:SetMaterial(mg)
Duel.SendtoGrave(mg,REASON_LINK)
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