Someone made the first part for me & I tried to copy & paste the second effect but I get this error. 10: Parameter 2 Should be function
Can only be special summoned if all monsters in your hand, field & Graveyard are Dark monsters. If you control another monster with a different Attribute; destroy this card.
Once per turn: you can banish 1 card on the field.
--Legendary Dragon of the Shadows
function c1067000000.initial_effect(c)
c:EnableReviveLimit()
--special summon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_EXTRA+LOCATION_ONFIELD)
e1:SetCondition(c1067000000.spcon)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCategory(CATEGORY_DESTROY)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c1067000000.descon)
c:RegisterEffect(e2)
--Remove
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(1067000000,1))
e3:SetCategory(CATEGORY_REMOVE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetTarget(c1067000000.rmtg)
e3:SetOperation(c1067000000.remop)
c:RegisterEffect(e3)
end
function c1067000000.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsAbleToRemove() end
if chk==0 then return true end
if Duel.IsExistingTarget(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(1067000000,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
end
function c1067000000.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.IsExistingMatchingCard(c1067000000.filter,tp,LOCATION_ONFIELD+LOCATION_HAND+LOCATION_GRAVE,0,nil)==0
end
function c1067000000.spfilter(c)
return not c:IsAttribute(ATTRIBUTE_DARK)
end
function c1067000000.descon(c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.IsExistingMatchingCard(c1067000000.desfilter,tp,LOCATION_MZONE,0,nil)>0
end
function c1067000000.desfilter(e,c)
return not c:IsAttribute(e:GetHandler():GetAttribute())
end
end