Commit a7ba9655 authored by songtongtong's avatar songtongtong

update 98600008.lua

parent d30d2780
Pipeline #17456 passed with stages
in 23 minutes and 27 seconds
......@@ -3,18 +3,15 @@ local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddLinkProcedure(c,nil,5,5,cm.lcheck)
c:EnableReviveLimit()
if not cm.gchk then
cm.gchk=true
local ex=Effect.GlobalEffect()
ex:SetType(EFFECT_TYPE_FIELD)
ex:SetCode(EFFECT_EXTRA_LINK_MATERIAL)
ex:SetTargetRange(LOCATION_HAND,LOCATION_HAND)
ex:SetValue(function(e,c,mg)
return c:GetOriginalCode()==m
end)
ex:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_IMMUNE)
Duel.RegisterEffect(ex,0)
end
--extra material
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e0:SetCode(EFFECT_EXTRA_LINK_MATERIAL)
e0:SetRange(LOCATION_EXTRA)
e0:SetTargetRange(LOCATION_HAND,0)
e0:SetValue(cm.matval)
c:RegisterEffect(e0)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
......@@ -188,6 +185,10 @@ function cm.initial_effect(c)
end)
c:RegisterEffect(e1)
end
function cm.matval(e,lc,mg,c,tp)
if e:GetHandler()~=lc then return false,nil end
return true,true
end
function cm.SanaeCondition(ct)
return function(e)
return e:GetHandler():GetLinkedGroupCount()>=ct
......
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