Commit a7ba9655 authored by songtongtong's avatar songtongtong

update 98600008.lua

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