name: Dark
card_text: While face-up on the field, this card is also WIND-Attribute. If this card is in your hand: You can banish 1 DARK and 1 WIND monster from your GY; Special Summon this card. If this card is in your GY: You can banish 1 DARK and 1 WIND monster from your hand; Special Summon this card. Your opponent cannot Set cards.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--Attribute Dark
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetCode(EFFECT_ADD_ATTRIBUTE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetValue(ATTRIBUTE_WIND)
  	c:RegisterEffect(e1)
  	--special summon
  	local e2 = Effect.CreateEffect(c)
  	e2:SetDescription(aux.Stringid(id, 0))
  	e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
  	e2:SetType(EFFECT_TYPE_IGNITION)
  	e2:SetRange(LOCATION_HAND + LOCATION_GRAVE)
  	e2:SetCost(s.spcost)
  	e2:SetTarget(s.sptg)
  	e2:SetOperation(s.spop)
  	c:RegisterEffect(e2)
  	--cannot set
  	local e4 = Effect.CreateEffect(c)
  	e4:SetType(EFFECT_TYPE_FIELD)
  	e4:SetCode(EFFECT_CANNOT_MSET)
  	e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e4:SetRange(LOCATION_MZONE)
  	e4:SetTargetRange(0, 1)
  	e4:SetTarget(aux.TRUE)
  	c:RegisterEffect(e4)
  	local e5 = e4:Clone()
  	e5:SetCode(EFFECT_CANNOT_SSET)
  	c:RegisterEffect(e5)
  	local e6 = e4:Clone()
  	e6:SetCode(EFFECT_CANNOT_TURN_SET)
  	c:RegisterEffect(e6)
  	local e7 = e4:Clone()
  	e7:SetCode(EFFECT_LIMIT_SPECIAL_SUMMON_POSITION)
  	e7:SetTarget(s.sumlimit)
  	c:RegisterEffect(e7)
  end
  function s.sumlimit(e, c, sump, sumtype, sumpos, targetp)
  	return bit.band(sumpos, POS_FACEDOWN) > 0
  end
  function s.spcostfilter(c)
  	return c:IsAbleToRemoveAsCost() and c:IsAttribute(ATTRIBUTE_WIND + ATTRIBUTE_DARK)
  end
  function s.spcost(e, tp, eg, ep, ev, re, r, rp, chk)
  	local g = Duel.GetMatchingGroup(s.spcostfilter, tp, LOCATION_HAND + LOCATION_GRAVE - e:GetHandler():GetLocation(), 0, nil)
  	if chk == 0 then
  		return g:CheckSubGroup(aux.gfcheck, 2, 2, Card.IsAttribute, ATTRIBUTE_WIND, ATTRIBUTE_DARK)
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_REMOVE)
  	local sg = g:SelectSubGroup(tp, aux.gfcheck, false, 2, 2, Card.IsAttribute, ATTRIBUTE_WIND, ATTRIBUTE_DARK)
  	Duel.Remove(sg, POS_FACEUP, REASON_COST)
  end
  function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.GetLocationCount(tp, LOCATION_MZONE) > 0 and e:GetHandler():IsCanBeSpecialSummoned(e, 0, tp, false, false)
  	end
  	Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, e:GetHandler(), 1, 0, 0)
  end
  function s.spop(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	if not c:IsRelateToEffect(e) then
  		return
  	end
  	Duel.SpecialSummon(c, 0, tp, tp, false, false, POS_FACEUP)
  end
  
  
source_text: Dark
  While face-up on the field, this card is also WIND-Attribute. If this card is in your hand: You can banish 1 DARK and 1 WIND monster from your GY; Special Summon this card. If this card is in your GY: You can banish 1 DARK and 1 WIND monster from your hand; Special Summon this card. Your opponent cannot Set cards.
target_text: -- Dark
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--Attribute Dark
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetCode(EFFECT_ADD_ATTRIBUTE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetValue(ATTRIBUTE_WIND)
  	c:RegisterEffect(e1)
  	--special summon
  	local e2 = Effect.CreateEffect(c)
  	e2:SetDescription(aux.Stringid(id, 0))
  	e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
  	e2:SetType(EFFECT_TYPE_IGNITION)
  	e2:SetRange(LOCATION_HAND + LOCATION_GRAVE)
  	e2:SetCost(s.spcost)
  	e2:SetTarget(s.sptg)
  	e2:SetOperation(s.spop)
  	c:RegisterEffect(e2)
  	--cannot set
  	local e4 = Effect.CreateEffect(c)
  	e4:SetType(EFFECT_TYPE_FIELD)
  	e4:SetCode(EFFECT_CANNOT_MSET)
  	e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e4:SetRange(LOCATION_MZONE)
  	e4:SetTargetRange(0, 1)
  	e4:SetTarget(aux.TRUE)
  	c:RegisterEffect(e4)
  	local e5 = e4:Clone()
  	e5:SetCode(EFFECT_CANNOT_SSET)
  	c:RegisterEffect(e5)
  	local e6 = e4:Clone()
  	e6:SetCode(EFFECT_CANNOT_TURN_SET)
  	c:RegisterEffect(e6)
  	local e7 = e4:Clone()
  	e7:SetCode(EFFECT_LIMIT_SPECIAL_SUMMON_POSITION)
  	e7:SetTarget(s.sumlimit)
  	c:RegisterEffect(e7)
  end
  function s.sumlimit(e, c, sump, sumtype, sumpos, targetp)
  	return bit.band(sumpos, POS_FACEDOWN) > 0
  end
  function s.spcostfilter(c)
  	return c:IsAbleToRemoveAsCost() and c:IsAttribute(ATTRIBUTE_WIND + ATTRIBUTE_DARK)
  end
  function s.spcost(e, tp, eg, ep, ev, re, r, rp, chk)
  	local g = Duel.GetMatchingGroup(s.spcostfilter, tp, LOCATION_HAND + LOCATION_GRAVE - e:GetHandler():GetLocation(), 0, nil)
  	if chk == 0 then
  		return g:CheckSubGroup(aux.gfcheck, 2, 2, Card.IsAttribute, ATTRIBUTE_WIND, ATTRIBUTE_DARK)
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_REMOVE)
  	local sg = g:SelectSubGroup(tp, aux.gfcheck, false, 2, 2, Card.IsAttribute, ATTRIBUTE_WIND, ATTRIBUTE_DARK)
  	Duel.Remove(sg, POS_FACEUP, REASON_COST)
  end
  function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.GetLocationCount(tp, LOCATION_MZONE) > 0 and e:GetHandler():IsCanBeSpecialSummoned(e, 0, tp, false, false)
  	end
  	Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, e:GetHandler(), 1, 0, 0)
  end
  function s.spop(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	if not c:IsRelateToEffect(e) then
  		return
  	end
  	Duel.SpecialSummon(c, 0, tp, tp, false, false, POS_FACEUP)
  end
  
  