name: Ground
card_text: Select 2 Main Monster Zones on the field. Neither player can use the selected zones. You cannot select a zone that is occupied by a Monster Card.
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)
  	e1:SetProperty(EFFECT_FLAG_CONTINUOUS_TARGET)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.GetLocationCount(tp, LOCATION_MZONE, PLAYER_NONE, 0) + Duel.GetLocationCount(1 - tp, LOCATION_MZONE, PLAYER_NONE, 0) > 1
  	end
  	local dis = Duel.SelectDisableField(tp, 2, LOCATION_MZONE, LOCATION_MZONE, 0xe000e0)
  	e:SetLabel(dis)
  	Duel.Hint(HINT_ZONE, tp, dis)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local zone = e:GetLabel()
  	if tp == 1 then
  		zone = ((zone & 0xffff) << 16) | ((zone >> 16) & 0xffff)
  	end
  	local c = e:GetHandler()
  	--disable field
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetCode(EFFECT_DISABLE_FIELD)
  	e2:SetValue(zone)
  	e2:SetReset(RESET_EVENT + RESETS_STANDARD)
  	c:RegisterEffect(e2)
  end
  
  
source_text: Ground
  Select 2 Main Monster Zones on the field. Neither player can use the selected zones. You cannot select a zone that is occupied by a Monster Card.
target_text: -- Ground
  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)
  	e1:SetProperty(EFFECT_FLAG_CONTINUOUS_TARGET)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.GetLocationCount(tp, LOCATION_MZONE, PLAYER_NONE, 0) + Duel.GetLocationCount(1 - tp, LOCATION_MZONE, PLAYER_NONE, 0) > 1
  	end
  	local dis = Duel.SelectDisableField(tp, 2, LOCATION_MZONE, LOCATION_MZONE, 0xe000e0)
  	e:SetLabel(dis)
  	Duel.Hint(HINT_ZONE, tp, dis)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local zone = e:GetLabel()
  	if tp == 1 then
  		zone = ((zone & 0xffff) << 16) | ((zone >> 16) & 0xffff)
  	end
  	local c = e:GetHandler()
  	--disable field
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetCode(EFFECT_DISABLE_FIELD)
  	e2:SetValue(zone)
  	e2:SetReset(RESET_EVENT + RESETS_STANDARD)
  	c:RegisterEffect(e2)
  end
  
  