Commit c4a7e691 authored by GuGu's avatar GuGu

Update c17061080.lua 1效果八阿哥

parent 12ef0a83
Pipeline #17149 passed with stage
in 51 seconds
......@@ -40,16 +40,16 @@ function cm.initial_effect(c)
c:RegisterEffect(e4)
end
function cm.psplimit(e,c,tp,sumtp,sumpos)
return not c:IsSetCard(0x7f6) and bit.band(sumtp,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
return not c:IsSetCard(0x37f6) and bit.band(sumtp,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end
function cm.cfilter(c)
return c:IsSetCard(0x7f6)
return c:IsSetCard(0x37f6) and c:IsFaceup()
end
function cm.pencon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_PZONE,0,1,e:GetHandler())
end
function cm.penfilter(c)
return c:IsSetCard(0x7f6) and c:IsType(TYPE_PENDULUM) and not c:IsForbidden()
return c:IsSetCard(0x37f6) and c:IsType(TYPE_PENDULUM) and not c:IsForbidden()
end
function cm.pentg(e,tp,eg,ep,ev,re,r,rp,chk)
local sc=Duel.GetFirstMatchingCard(nil,tp,LOCATION_PZONE,0,e:GetHandler())
......@@ -69,7 +69,7 @@ function cm.penop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldCard(tp,LOCATION_PZONE,0) and Duel.GetFieldCard(tp,LOCATION_PZONE,1)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_PZONE,0,2,nil)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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