name: Weighbridge
card_text: If your opponent controls 2 or more monsters than you do: Your opponent must send monsters they control to the GY so they only control 1 monster.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCategory(CATEGORY_TOGRAVE)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetHintTiming(0, TIMINGS_CHECK_MONSTER + TIMING_END_PHASE)
  	e1:SetCondition(s.condition)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	return Duel.GetFieldGroupCount(tp, 0, LOCATION_MZONE) - Duel.GetFieldGroupCount(tp, LOCATION_MZONE, 0) >= 2
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	local mc = Duel.GetFieldGroupCount(tp, 0, LOCATION_MZONE)
  	local count = mc - 1
  	if chk == 0 then
  		return count > 0
  	end
  	Duel.SetOperationInfo(0, CATEGORY_TOGRAVE, nil, count, 1 - tp, LOCATION_MZONE)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local g = Duel.GetFieldGroup(1 - tp, LOCATION_MZONE, 0)
  	local count = g:GetCount() - 1
  	if count > 0 then
  		Duel.Hint(HINT_SELECTMSG, 1 - tp, HINTMSG_TOGRAVE)
  		local sg = g:Select(1 - tp, count, count, nil)
  		Duel.HintSelection(sg)
  		Duel.SendtoGrave(sg, REASON_RULE)
  	end
  end
  
  
source_text: Weighbridge
  If your opponent controls 2 or more monsters than you do: Your opponent must send monsters they control to the GY so they only control 1 monster.
target_text: -- Weighbridge
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCategory(CATEGORY_TOGRAVE)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetHintTiming(0, TIMINGS_CHECK_MONSTER + TIMING_END_PHASE)
  	e1:SetCondition(s.condition)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	return Duel.GetFieldGroupCount(tp, 0, LOCATION_MZONE) - Duel.GetFieldGroupCount(tp, LOCATION_MZONE, 0) >= 2
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	local mc = Duel.GetFieldGroupCount(tp, 0, LOCATION_MZONE)
  	local count = mc - 1
  	if chk == 0 then
  		return count > 0
  	end
  	Duel.SetOperationInfo(0, CATEGORY_TOGRAVE, nil, count, 1 - tp, LOCATION_MZONE)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local g = Duel.GetFieldGroup(1 - tp, LOCATION_MZONE, 0)
  	local count = g:GetCount() - 1
  	if count > 0 then
  		Duel.Hint(HINT_SELECTMSG, 1 - tp, HINTMSG_TOGRAVE)
  		local sg = g:Select(1 - tp, count, count, nil)
  		Duel.HintSelection(sg)
  		Duel.SendtoGrave(sg, REASON_RULE)
  	end
  end
  
  