name: Zerozerock
card_text: Your opponent cannot target face-up Attack Position monsters with 0 ATK for attacks.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	c:RegisterEffect(e1)
  	--atklimit
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetTargetRange(0, LOCATION_MZONE)
  	e2:SetValue(s.target)
  	c:RegisterEffect(e2)
  end
  function s.target(e, c)
  	return c:IsPosition(POS_FACEUP_ATTACK) and c:IsAttack(0)
  end
  
  
source_text: Zerozerock
  Your opponent cannot target face-up Attack Position monsters with 0 ATK for attacks.
target_text: -- Zerozerock
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	c:RegisterEffect(e1)
  	--atklimit
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetTargetRange(0, LOCATION_MZONE)
  	e2:SetValue(s.target)
  	c:RegisterEffect(e2)
  end
  function s.target(e, c)
  	return c:IsPosition(POS_FACEUP_ATTACK) and c:IsAttack(0)
  end
  
  