Commit fdb3cc49 authored by songtongtong's avatar songtongtong

12.21 14:15

parent 1b80e506
Pipeline #18743 passed with stages
in 25 minutes and 55 seconds
...@@ -4,7 +4,7 @@ local cm=_G["c"..m] ...@@ -4,7 +4,7 @@ local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--xyz summon --xyz summon
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddXyzProcedureLevelFree(c,nil,cm.xyzcheck,2,2) aux.AddXyzProcedureLevelFree(c,cm.check,cm.xyzcheck,2,2)
--Attribute Dark --Attribute Dark
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -32,6 +32,9 @@ function cm.initial_effect(c) ...@@ -32,6 +32,9 @@ function cm.initial_effect(c)
e3:SetOperation(cm.disop) e3:SetOperation(cm.disop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.check(c)
return c:GetRank()>0
end
function cm.xyzcheck(g) function cm.xyzcheck(g)
return g:GetClassCount(Card.GetRank)==1 return g:GetClassCount(Card.GetRank)==1
end end
...@@ -41,7 +44,7 @@ end ...@@ -41,7 +44,7 @@ end
function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp) function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsSummonType(SUMMON_TYPE_XYZ) then return end if not c:IsSummonType(SUMMON_TYPE_XYZ) then return end
local cg=c:GetOverlayGroup() local cg=c:GetMaterial()
local sg=cg:Filter(cm.copyfilter,nil) local sg=cg:Filter(cm.copyfilter,nil)
for tc in aux.Next(sg) do for tc in aux.Next(sg) do
local code=tc:GetCode() local code=tc:GetCode()
......
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