Commit b45d11c9 authored by TanakaKotoha's avatar TanakaKotoha

Mercury233

parent 1f21c810
No preview for this file type
...@@ -138,15 +138,12 @@ function cm.initial_effect(c) ...@@ -138,15 +138,12 @@ function cm.initial_effect(c)
e1:SetOperation(cm.thop) e1:SetOperation(cm.thop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function cm.cknfilter(c)
return not c:IsDisabled()
end
function cm.lkfilter(c,lc,tp) function cm.lkfilter(c,lc,tp)
local flag=c:IsFaceup() and c:IsCanBeLinkMaterial(lc) local flag=c:IsFaceup() and c:IsCanBeLinkMaterial(lc)
if c:IsType(TYPE_MONSTER) then if c:IsType(TYPE_MONSTER) then
return flag and c:IsLinkRace(RACE_CYBERSE+RACE_MACHINE) return flag and c:IsLinkRace(RACE_CYBERSE+RACE_MACHINE)
else else
return c:IsFaceup() and c:IsType(TYPE_TRAP) and not Duel.IsExistingMatchingCard(cm.cknfilter,tp,0,LOCATION_SZONE,1,nil) return c:IsFaceup() and c:IsType(TYPE_TRAP)
end end
end end
function cm.lvfilter(c) function cm.lvfilter(c)
......
--雨泪·砂冢明音 --雨泪·砂冢明音
function c81011047.initial_effect(c) function c81011047.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
-- --extra link
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
e0:SetDescription(aux.Stringid(81011047,0))
e0:SetType(EFFECT_TYPE_FIELD) e0:SetType(EFFECT_TYPE_FIELD)
e0:SetCode(EFFECT_SPSUMMON_PROC) e0:SetCode(EFFECT_SPSUMMON_PROC)
e0:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE) e0:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
...@@ -40,15 +41,12 @@ function c81011047.initial_effect(c) ...@@ -40,15 +41,12 @@ function c81011047.initial_effect(c)
e5:SetOperation(c81011047.setop) e5:SetOperation(c81011047.setop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c81011047.cknfilter(c)
return c:GetOriginalCode()==77765004 and not c:IsDisabled()
end
function c81011047.lkfilter(c,lc,tp) function c81011047.lkfilter(c,lc,tp)
local flag=c:IsFaceup() and c:IsCanBeLinkMaterial(lc) local flag=c:IsFaceup() and c:IsCanBeLinkMaterial(lc)
if c:IsType(TYPE_MONSTER) then if c:IsType(TYPE_MONSTER) then
return flag and c:IsType(TYPE_EFFECT) return flag and c:IsLinkType(TYPE_EFFECT)
else else
return c:IsFaceup() and c:IsType(TYPE_TRAP) and not Duel.IsExistingMatchingCard(c81011047.cknfilter,tp,0,LOCATION_SZONE,1,nil) return c:IsFaceup() and c:IsType(TYPE_TRAP)
end end
end end
function c81011047.lvfilter(c) function c81011047.lvfilter(c)
...@@ -58,6 +56,7 @@ function c81011047.lvfilter(c) ...@@ -58,6 +56,7 @@ function c81011047.lvfilter(c)
return 1 return 1
end end
end end
--
function c81011047.lcheck(tp,sg,lc,minc,ct) function c81011047.lcheck(tp,sg,lc,minc,ct)
return ct>=minc and sg:CheckWithSumEqual(c81011047.lvfilter,lc:GetLink(),ct,ct) and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0 return ct>=minc and sg:CheckWithSumEqual(c81011047.lvfilter,lc:GetLink(),ct,ct) and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0
end end
...@@ -71,7 +70,6 @@ function c81011047.lkchenk(c,tp,sg,mg,lc,ct,minc,maxc) ...@@ -71,7 +70,6 @@ function c81011047.lkchenk(c,tp,sg,mg,lc,ct,minc,maxc)
end end
function c81011047.lkcon(e,c) function c81011047.lkcon(e,c)
if c==nil then return true end if c==nil then return true end
if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c81011047.lkfilter,tp,LOCATION_ONFIELD,0,nil,c,tp) local mg=Duel.GetMatchingGroup(c81011047.lkfilter,tp,LOCATION_ONFIELD,0,nil,c,tp)
local sg=Group.CreateGroup() local sg=Group.CreateGroup()
...@@ -102,7 +100,7 @@ function c81011047.lkop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -102,7 +100,7 @@ function c81011047.lkop(e,tp,eg,ep,ev,re,r,rp,c)
if cg:GetCount()==0 then break end if cg:GetCount()==0 then break end
local minct=1 local minct=1
if c81011047.lcheck(tp,sg,c,minc,i) then if c81011047.lcheck(tp,sg,c,minc,i) then
if not Duel.SelectYesNo(tp,210) then break end if not Duel.SelectYesNo(tp,aux.Stringid(81011047,0)) then break end
minct=0 minct=0
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_LMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_LMATERIAL)
......
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