Commit 90ed969a authored by salix5's avatar salix5

copy card name

parent 19516650
...@@ -38,7 +38,7 @@ function c41209827.initial_effect(c) ...@@ -38,7 +38,7 @@ function c41209827.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c41209827.ffilter(c) function c41209827.ffilter(c)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsLocation(LOCATION_MZONE) and not c:IsType(TYPE_TOKEN) return c:IsAttribute(ATTRIBUTE_DARK) and c:IsLocation(LOCATION_MZONE)
end end
function c41209827.atkcon(e,tp,eg,ep,ev,re,r,rp) function c41209827.atkcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
......
...@@ -11,14 +11,11 @@ function c43237273.initial_effect(c) ...@@ -11,14 +11,11 @@ function c43237273.initial_effect(c)
e1:SetOperation(c43237273.operation) e1:SetOperation(c43237273.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c43237273.copyfilter(c)
return c:IsFaceup() and not c:IsType(TYPE_TOKEN)
end
function c43237273.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) 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 c43237273.copyfilter(chkc) end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(c43237273.copyfilter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c43237273.copyfilter,tp,0,LOCATION_MZONE,1,1,nil) Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil)
end end
function c43237273.operation(e,tp,eg,ep,ev,re,r,rp) function c43237273.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() 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