name: Thunder
card_text: If there is a non-LIGHT monster on your side of the field, destroy this face-up card.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--self destroy
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCode(EFFECT_SELF_DESTROY)
  	e1:SetCondition(s.sdcon)
  	c:RegisterEffect(e1)
  end
  function s.sdfilter(c)
  	return c:IsFaceup() and c:IsNonAttribute(ATTRIBUTE_LIGHT)
  end
  function s.sdcon(e)
  	return Duel.IsExistingMatchingCard(s.sdfilter, e:GetHandlerPlayer(), LOCATION_MZONE, 0, 1, nil)
  end
  
  
source_text: Thunder
  If there is a non-LIGHT monster on your side of the field, destroy this face-up card.
target_text: -- Thunder
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--self destroy
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCode(EFFECT_SELF_DESTROY)
  	e1:SetCondition(s.sdcon)
  	c:RegisterEffect(e1)
  end
  function s.sdfilter(c)
  	return c:IsFaceup() and c:IsNonAttribute(ATTRIBUTE_LIGHT)
  end
  function s.sdcon(e)
  	return Duel.IsExistingMatchingCard(s.sdfilter, e:GetHandlerPlayer(), LOCATION_MZONE, 0, 1, nil)
  end
  
  