Commit 1bfcf8ba authored by mercury233's avatar mercury233

fix copy name

parent 9d8aeb74
......@@ -69,7 +69,7 @@ function c41209827.copycost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RegisterFlagEffect(41209827,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end
function c41209827.copyfilter(c)
return c:IsFaceup() and c:IsLevelAbove(5)
return c:IsFaceup() and c:IsLevelAbove(5) and not c:IsType(TYPE_TOKEN)
end
function c41209827.copytg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c41209827.copyfilter(chkc) end
......
......@@ -11,11 +11,14 @@ function c43237273.initial_effect(c)
e1:SetOperation(c43237273.operation)
c:RegisterEffect(e1)
end
function c43237273.filter(c)
return c:IsFaceup() and not c:IsType(TYPE_TOKEN)
end
function c43237273.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c43237273.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c43237273.filter,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SelectTarget(tp,c43237273.filter,tp,0,LOCATION_MZONE,1,1,nil)
end
function c43237273.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
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