name: Machina
card_text: Monsters cannot attack "Machina" monsters, except "Machina Sniper".
external_ids: local SETCARD_ID_0 = 0x36 --Machina
  
lua: local SETCARD_ID_0 = 0x36 --Machina
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--atk limit
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e1:SetTarget(s.tg)
  	e1:SetValue(aux.imval1)
  	c:RegisterEffect(e1)
  end
  function s.tg(e, c)
  	return c:IsSetCard(SETCARD_ID_0) and not c:IsCode(id)
  end
  
  
source_text: Machina
  Monsters cannot attack "Machina" monsters, except "Machina Sniper".
target_text: -- Machina
  local SETCARD_ID_0 = 0x36 --Machina
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--atk limit
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e1:SetTarget(s.tg)
  	e1:SetValue(aux.imval1)
  	c:RegisterEffect(e1)
  end
  function s.tg(e, c)
  	return c:IsSetCard(SETCARD_ID_0) and not c:IsCode(id)
  end
  
  