Commit 274cc10b authored by Tachibana's avatar Tachibana

rar

parent ea35de97
Pipeline #3632 passed with stages
in 36 minutes and 12 seconds
......@@ -82,7 +82,11 @@ function cm.tsop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.actcon(e)
local tc=Duel.GetAttacker()
local tp=e:GetHandlerPlayer()
return tc and tc:IsControler(tp) and tc:IsSummonType(SUMMON_TYPE_NORMAL) and tc:IsLevel(10)
local a=Duel.GetAttacker()
local d=Duel.GetAttackTarget()
return (a and cm.cfilter(a,tp)) or (d and cm.cfilter(d,tp))
end
function cm.cfilter(c,tp)
return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_NORMAL) and c:IsLevel(10) and c:IsControler(tp)
end
......@@ -24,7 +24,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.filter(c,e,tp,m1,ft)
if not c:IsSetCard(0x5da8) or bit.band(c:GetType(),0x81)~=0x81
if not c:IsType(TYPE_PENDULUM) or bit.band(c:GetType(),0x81)~=0x81
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
local mg=m1:Filter(Card.IsCanBeRitualMaterial,c,c)
if c.mat_filter then
......
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