Commit c96d60f4 authored by GuGu's avatar GuGu

Update c20001.lua

parent 2596aa6e
Pipeline #33790 passed with stage
in 7 seconds
...@@ -6,6 +6,7 @@ function c20001.initial_effect(c) ...@@ -6,6 +6,7 @@ function c20001.initial_effect(c)
e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,20001+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c20001.spcon) e1:SetCondition(c20001.spcon)
e1:SetOperation(c20001.spop) e1:SetOperation(c20001.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -39,11 +40,10 @@ function c20001.filter(c) ...@@ -39,11 +40,10 @@ function c20001.filter(c)
end end
function c20001.spcon(e,c) function c20001.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetFlagEffect(c:GetControler(),20001)==0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c20001.filter,c:GetControler(),LOCATION_SZONE,0,1,nil) and Duel.IsExistingMatchingCard(c20001.filter,c:GetControler(),LOCATION_SZONE,0,1,nil)
end end
function c20001.spop(e,tp,eg,ep,ev,re,r,rp,c) function c20001.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.RegisterFlagEffect(tp,20001,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL) e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
......
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