name: Decoyroid
card_text: While this card is face-up on your side of the field, your opponent cannot select a face-up monster as an attack target except "Decoyroid".
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--cannot be battle target
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(0, LOCATION_MZONE)
  	e1:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET)
  	e1:SetValue(s.atlimit)
  	c:RegisterEffect(e1)
  end
  function s.atlimit(e, c)
  	return not c:IsCode(id) and c:IsFaceup()
  end
  
  
source_text: Decoyroid
  While this card is face-up on your side of the field, your opponent cannot select a face-up monster as an attack target except "Decoyroid".
target_text: -- Decoyroid
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--cannot be battle target
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(0, LOCATION_MZONE)
  	e1:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET)
  	e1:SetValue(s.atlimit)
  	c:RegisterEffect(e1)
  end
  function s.atlimit(e, c)
  	return not c:IsCode(id) and c:IsFaceup()
  end
  
  