name: Tour
card_text: During your opponent's Standby Phase, toss a coin:
  ● Heads: Your opponent cannot Normal or Flip Summon until the End Phase.
  ● Tails: You cannot Normal or Flip Summon during your next turn.
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:SetHintTiming(0, TIMING_STANDBY_PHASE)
  	c:RegisterEffect(e1)
  	--coin
  	local e2 = Effect.CreateEffect(c)
  	e2:SetDescription(aux.Stringid(id, 0))
  	e2:SetCategory(CATEGORY_COIN)
  	e2:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_F)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetCountLimit(1)
  	e2:SetCode(EVENT_PHASE + PHASE_STANDBY)
  	e2:SetCondition(s.coincon)
  	e2:SetTarget(s.cointg)
  	e2:SetOperation(s.coinop)
  	c:RegisterEffect(e2)
  end
  function s.coincon(e, tp, eg, ep, ev, re, r, rp)
  	return tp ~= Duel.GetTurnPlayer()
  end
  function s.cointg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.SetOperationInfo(0, CATEGORY_COIN, nil, 0, tp, 1)
  end
  function s.coinop(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	local res = Duel.TossCoin(tp, 1)
  	local e1 = Effect.CreateEffect(e:GetHandler())
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e1:SetCode(EFFECT_CANNOT_SUMMON)
  	if res == 0 then
  		e1:SetReset(RESET_PHASE + PHASE_END + RESET_SELF_TURN)
  		e1:SetTargetRange(1, 0)
  		e1:SetCondition(s.limcon)
  	else
  		e1:SetReset(RESET_PHASE + PHASE_END)
  		e1:SetTargetRange(0, 1)
  	end
  	Duel.RegisterEffect(e1, tp)
  	local e2 = e1:Clone()
  	e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
  	Duel.RegisterEffect(e2, tp)
  end
  function s.limcon(e)
  	return Duel.GetTurnPlayer() == e:GetHandlerPlayer()
  end
  
  
source_text: Tour
  During your opponent's Standby Phase, toss a coin:
  ● Heads: Your opponent cannot Normal or Flip Summon until the End Phase.
  ● Tails: You cannot Normal or Flip Summon during your next turn.
target_text: -- Tour
  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:SetHintTiming(0, TIMING_STANDBY_PHASE)
  	c:RegisterEffect(e1)
  	--coin
  	local e2 = Effect.CreateEffect(c)
  	e2:SetDescription(aux.Stringid(id, 0))
  	e2:SetCategory(CATEGORY_COIN)
  	e2:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_F)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetCountLimit(1)
  	e2:SetCode(EVENT_PHASE + PHASE_STANDBY)
  	e2:SetCondition(s.coincon)
  	e2:SetTarget(s.cointg)
  	e2:SetOperation(s.coinop)
  	c:RegisterEffect(e2)
  end
  function s.coincon(e, tp, eg, ep, ev, re, r, rp)
  	return tp ~= Duel.GetTurnPlayer()
  end
  function s.cointg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.SetOperationInfo(0, CATEGORY_COIN, nil, 0, tp, 1)
  end
  function s.coinop(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	local res = Duel.TossCoin(tp, 1)
  	local e1 = Effect.CreateEffect(e:GetHandler())
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e1:SetCode(EFFECT_CANNOT_SUMMON)
  	if res == 0 then
  		e1:SetReset(RESET_PHASE + PHASE_END + RESET_SELF_TURN)
  		e1:SetTargetRange(1, 0)
  		e1:SetCondition(s.limcon)
  	else
  		e1:SetReset(RESET_PHASE + PHASE_END)
  		e1:SetTargetRange(0, 1)
  	end
  	Duel.RegisterEffect(e1, tp)
  	local e2 = e1:Clone()
  	e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
  	Duel.RegisterEffect(e2, tp)
  end
  function s.limcon(e)
  	return Duel.GetTurnPlayer() == e:GetHandlerPlayer()
  end
  
  