name: Dark
card_text: 1 Fiend-Type Tuner + 1 or more non-Tuner Fiend-Type monsters
  Neither player can Synchro Summon. Once per turn: You can target 1 monster your opponent controls that is equipped with an Equip Card; destroy all Equip Cards equipped to that monster, and if you do, inflict 400 damage to your opponent for each card destroyed.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--synchro summon
  	aux.AddSynchroProcedure(c, aux.FilterBoolFunction(Card.IsRace, RACE_FIEND), aux.NonTuner(Card.IsRace, RACE_FIEND), 1)
  	c:EnableReviveLimit()
  	--disable spsummon
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
  	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e1:SetTargetRange(1, 1)
  	e1:SetTarget(s.splimit)
  	c:RegisterEffect(e1)
  	--send to grave
  	local e2 = Effect.CreateEffect(c)
  	e2:SetDescription(aux.Stringid(id, 0))
  	e2:SetCategory(CATEGORY_DESTROY + CATEGORY_DAMAGE)
  	e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	e2:SetType(EFFECT_TYPE_IGNITION)
  	e2:SetCountLimit(1)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetTarget(s.target)
  	e2:SetOperation(s.operation)
  	c:RegisterEffect(e2)
  end
  function s.splimit(e, c, tp, sumtp, sumpos)
  	return bit.band(sumtp, SUMMON_TYPE_SYNCHRO) == SUMMON_TYPE_SYNCHRO
  end
  function s.filter(c)
  	return c:GetEquipCount() > 0
  end
  function s.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 s.filter(chkc)
  	end
  	if chk == 0 then
  		return Duel.IsExistingTarget(s.filter, tp, 0, LOCATION_MZONE, 1, nil)
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_OPPO)
  	local g = Duel.SelectTarget(tp, s.filter, tp, 0, LOCATION_MZONE, 1, 1, nil)
  	local eqg = g:GetFirst():GetEquipGroup()
  	Duel.SetOperationInfo(0, CATEGORY_DESTROY, eqg, eqg:GetCount(), 0, 0)
  	Duel.SetOperationInfo(0, CATEGORY_DAMAGE, nil, 0, 1 - tp, eqg:GetCount() * 400)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local tc = Duel.GetFirstTarget()
  	if tc and tc:IsRelateToEffect(e) then
  		local eqg = tc:GetEquipGroup()
  		if eqg:GetCount() > 0 then
  			local des = Duel.Destroy(eqg, REASON_EFFECT)
  			Duel.Damage(1 - tp, des * 400, REASON_EFFECT)
  		end
  	end
  end
  
  
source_text: Dark
  1 Fiend-Type Tuner + 1 or more non-Tuner Fiend-Type monsters
  Neither player can Synchro Summon. Once per turn: You can target 1 monster your opponent controls that is equipped with an Equip Card; destroy all Equip Cards equipped to that monster, and if you do, inflict 400 damage to your opponent for each card destroyed.
target_text: -- Dark
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--synchro summon
  	aux.AddSynchroProcedure(c, aux.FilterBoolFunction(Card.IsRace, RACE_FIEND), aux.NonTuner(Card.IsRace, RACE_FIEND), 1)
  	c:EnableReviveLimit()
  	--disable spsummon
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
  	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e1:SetTargetRange(1, 1)
  	e1:SetTarget(s.splimit)
  	c:RegisterEffect(e1)
  	--send to grave
  	local e2 = Effect.CreateEffect(c)
  	e2:SetDescription(aux.Stringid(id, 0))
  	e2:SetCategory(CATEGORY_DESTROY + CATEGORY_DAMAGE)
  	e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	e2:SetType(EFFECT_TYPE_IGNITION)
  	e2:SetCountLimit(1)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetTarget(s.target)
  	e2:SetOperation(s.operation)
  	c:RegisterEffect(e2)
  end
  function s.splimit(e, c, tp, sumtp, sumpos)
  	return bit.band(sumtp, SUMMON_TYPE_SYNCHRO) == SUMMON_TYPE_SYNCHRO
  end
  function s.filter(c)
  	return c:GetEquipCount() > 0
  end
  function s.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 s.filter(chkc)
  	end
  	if chk == 0 then
  		return Duel.IsExistingTarget(s.filter, tp, 0, LOCATION_MZONE, 1, nil)
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_OPPO)
  	local g = Duel.SelectTarget(tp, s.filter, tp, 0, LOCATION_MZONE, 1, 1, nil)
  	local eqg = g:GetFirst():GetEquipGroup()
  	Duel.SetOperationInfo(0, CATEGORY_DESTROY, eqg, eqg:GetCount(), 0, 0)
  	Duel.SetOperationInfo(0, CATEGORY_DAMAGE, nil, 0, 1 - tp, eqg:GetCount() * 400)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local tc = Duel.GetFirstTarget()
  	if tc and tc:IsRelateToEffect(e) then
  		local eqg = tc:GetEquipGroup()
  		if eqg:GetCount() > 0 then
  			local des = Duel.Destroy(eqg, REASON_EFFECT)
  			Duel.Damage(1 - tp, des * 400, REASON_EFFECT)
  		end
  	end
  end
  
  