name: Searchlightman
card_text: FLIP: Your opponent cannot Set (or flip face-down) any cards for the rest of this turn.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--flip
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_FLIP)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	--cannot set
  	local e1 = Effect.CreateEffect(e:GetHandler())
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_CANNOT_MSET)
  	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e1:SetTargetRange(0, 1)
  	e1:SetReset(RESET_PHASE + PHASE_END)
  	Duel.RegisterEffect(e1, tp)
  	local e2 = e1:Clone()
  	e2:SetCode(EFFECT_CANNOT_SSET)
  	Duel.RegisterEffect(e2, tp)
  	local e3 = e1:Clone()
  	e3:SetCode(EFFECT_CANNOT_TURN_SET)
  	Duel.RegisterEffect(e3, tp)
  	local e4 = e1:Clone()
  	e4:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
  	e4:SetTarget(s.sumlimit)
  	Duel.RegisterEffect(e4, tp)
  end
  function s.sumlimit(e, c, sump, sumtype, sumpos, targetp)
  	return bit.band(sumpos, POS_FACEDOWN) > 0
  end
  
  
source_text: Searchlightman
  FLIP: Your opponent cannot Set (or flip face-down) any cards for the rest of this turn.
target_text: -- Searchlightman
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--flip
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_FLIP)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	--cannot set
  	local e1 = Effect.CreateEffect(e:GetHandler())
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_CANNOT_MSET)
  	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e1:SetTargetRange(0, 1)
  	e1:SetReset(RESET_PHASE + PHASE_END)
  	Duel.RegisterEffect(e1, tp)
  	local e2 = e1:Clone()
  	e2:SetCode(EFFECT_CANNOT_SSET)
  	Duel.RegisterEffect(e2, tp)
  	local e3 = e1:Clone()
  	e3:SetCode(EFFECT_CANNOT_TURN_SET)
  	Duel.RegisterEffect(e3, tp)
  	local e4 = e1:Clone()
  	e4:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
  	e4:SetTarget(s.sumlimit)
  	Duel.RegisterEffect(e4, tp)
  end
  function s.sumlimit(e, c, sump, sumtype, sumpos, targetp)
  	return bit.band(sumpos, POS_FACEDOWN) > 0
  end
  
  