Commit 70a10464 authored by GuGu's avatar GuGu

Update c25504.lua

parent 6518265f
Pipeline #33473 passed with stage
in 16 seconds
...@@ -52,12 +52,12 @@ end ...@@ -52,12 +52,12 @@ end
function c25504.mdfilter(c) function c25504.mdfilter(c)
return c:IsSetCard(0x740) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0x740) and c:IsAbleToRemoveAsCost()
end end
function c25504.lkcon(e,c) function c25504.lkcon(e,c,og)
if c==nil then return true end if c==nil then return true end
if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c25504.lkfilter,tp,LOCATION_MZONE,0,nil,c,tp) local mg=Duel.GetMatchingGroup(c25504.lkfilter,tp,LOCATION_MZONE,0,nil,c,tp)
return mg:GetCount()>0 and Duel.IsExistingMatchingCard(c25504.mdfilter,tp,LOCATION_GRAVE,0,1,nil) return mg:GetCount()>0 and Duel.IsExistingMatchingCard(c25504.mdfilter,tp,LOCATION_GRAVE,0,1,nil) and not og
end end
function c25504.lkop(e,tp,eg,ep,ev,re,r,rp,c) function c25504.lkop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c25504.lkfilter,tp,LOCATION_MZONE,0,nil,c,tp) local mg=Duel.GetMatchingGroup(c25504.lkfilter,tp,LOCATION_MZONE,0,nil,c,tp)
......
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