Commit e995b314 authored by GuGu's avatar GuGu

Update c50252.lua

parent 1949c202
Pipeline #40201 passed with stage
in 15 seconds
...@@ -43,10 +43,11 @@ function c50252.bop(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,10 +43,11 @@ function c50252.bop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(50252,1)) e1:SetDescription(aux.Stringid(50252,1))
e1:SetCategory(CATEGORY_DRAW+CATEGORY_RECOVER) e1:SetCategory(CATEGORY_DRAW+CATEGORY_RECOVER)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c50252.spcon)
e1:SetTarget(c50252.sptg) e1:SetTarget(c50252.sptg)
e1:SetOperation(c50252.spop) e1:SetOperation(c50252.spop)
token:RegisterEffect(e1) token:RegisterEffect(e1)
...@@ -66,6 +67,9 @@ function c50252.bop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,6 +67,9 @@ function c50252.bop(e,tp,eg,ep,ev,re,r,rp)
e4:SetOperation(c50252.desop) e4:SetOperation(c50252.desop)
token:RegisterEffect(e4) token:RegisterEffect(e4)
end end
function c50252.spcon(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer()
end
function c50252.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c50252.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,1,0,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