name: Shadowslayer
card_text: If all monsters your opponent controls are in Defense Position, this card can attack your opponent directly.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--direct attack
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_DIRECT_ATTACK)
  	e1:SetCondition(s.con)
  	c:RegisterEffect(e1)
  end
  function s.con(e)
  	return not Duel.IsExistingMatchingCard(Card.IsAttackPos, e:GetHandler():GetControler(), 0, LOCATION_MZONE, 1, nil)
  end
  
  
source_text: Shadowslayer
  If all monsters your opponent controls are in Defense Position, this card can attack your opponent directly.
target_text: -- Shadowslayer
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--direct attack
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_DIRECT_ATTACK)
  	e1:SetCondition(s.con)
  	c:RegisterEffect(e1)
  end
  function s.con(e)
  	return not Duel.IsExistingMatchingCard(Card.IsAttackPos, e:GetHandler():GetControler(), 0, LOCATION_MZONE, 1, nil)
  end
  
  