Commit a987da61 authored by GuGu's avatar GuGu

Update c17061020.lua

parent a6caaf74
Pipeline #17504 passed with stage
in 57 seconds
......@@ -52,7 +52,6 @@ function cm.initial_effect(c)
e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e5:SetCode(EFFECT_DESTROY_REPLACE)
e5:SetRange(LOCATION_MZONE)
e5:SetCountLimit(1)
e5:SetTarget(cm.reptg)
e5:SetValue(cm.repval)
c:RegisterEffect(e5)
......@@ -94,9 +93,8 @@ function cm.repfilter(c,tp)
end
function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(cm.repfilter,1,nil,tp) end
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
local Peg=eg:Filter(cm.repfilter,e:GetHandler())
if Peg:GetCount()<=0 then return false end
local Peg=eg:Filter(cm.repfilter,e:GetHandler(),tp)
if Peg:GetCount()>0 and Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.SendtoHand(Peg,nil,REASON_EFFECT)
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
return true
......
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