name: Trancefamiliar
card_text: Once per turn: You can target 1 monster you control; move that target to another of your Main Monster Zones.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--move
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetType(EFFECT_TYPE_IGNITION)
  	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCountLimit(1)
  	e1:SetTarget(s.mvtg)
  	e1:SetOperation(s.mvop)
  	c:RegisterEffect(e1)
  end
  function s.mvtg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
  	if chkc then
  		return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp)
  	end
  	if chk == 0 then
  		return Duel.IsExistingTarget(nil, tp, LOCATION_MZONE, 0, 1, nil) and Duel.GetLocationCount(tp, LOCATION_MZONE, PLAYER_NONE, 0) > 0
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, aux.Stringid(id, 1))
  	Duel.SelectTarget(tp, nil, tp, LOCATION_MZONE, 0, 1, 1, nil)
  end
  function s.mvop(e, tp, eg, ep, ev, re, r, rp)
  	local tc = Duel.GetFirstTarget()
  	if not tc:IsRelateToEffect(e) or tc:IsControler(1 - tp) or Duel.GetLocationCount(tp, LOCATION_MZONE, PLAYER_NONE, 0) <= 0 then
  		return
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TOZONE)
  	local s = Duel.SelectDisableField(tp, 1, LOCATION_MZONE, 0, 0)
  	local nseq = math.log(s, 2)
  	Duel.MoveSequence(tc, nseq)
  end
  
  
source_text: Trancefamiliar
  Once per turn: You can target 1 monster you control; move that target to another of your Main Monster Zones.
target_text: -- Trancefamiliar
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--move
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetType(EFFECT_TYPE_IGNITION)
  	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCountLimit(1)
  	e1:SetTarget(s.mvtg)
  	e1:SetOperation(s.mvop)
  	c:RegisterEffect(e1)
  end
  function s.mvtg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
  	if chkc then
  		return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp)
  	end
  	if chk == 0 then
  		return Duel.IsExistingTarget(nil, tp, LOCATION_MZONE, 0, 1, nil) and Duel.GetLocationCount(tp, LOCATION_MZONE, PLAYER_NONE, 0) > 0
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, aux.Stringid(id, 1))
  	Duel.SelectTarget(tp, nil, tp, LOCATION_MZONE, 0, 1, 1, nil)
  end
  function s.mvop(e, tp, eg, ep, ev, re, r, rp)
  	local tc = Duel.GetFirstTarget()
  	if not tc:IsRelateToEffect(e) or tc:IsControler(1 - tp) or Duel.GetLocationCount(tp, LOCATION_MZONE, PLAYER_NONE, 0) <= 0 then
  		return
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TOZONE)
  	local s = Duel.SelectDisableField(tp, 1, LOCATION_MZONE, 0, 0)
  	local nseq = math.log(s, 2)
  	Duel.MoveSequence(tc, nseq)
  end
  
  