name: Wattkinetic
card_text: (Quick Effect): You can send this card from your hand or field to the GY, then target 1 monster your opponent controls; move that target to another of their Main Monster Zones.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--move
  	local e2 = Effect.CreateEffect(c)
  	e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	e2:SetType(EFFECT_TYPE_QUICK_O)
  	e2:SetCode(EVENT_FREE_CHAIN)
  	e2:SetRange(LOCATION_HAND + LOCATION_MZONE)
  	e2:SetCountLimit(1)
  	e2:SetCost(s.seqcost)
  	e2:SetTarget(s.seqtg)
  	e2:SetOperation(s.seqop)
  	c:RegisterEffect(e2)
  end
  function s.seqcost(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return e:GetHandler():IsAbleToGraveAsCost()
  	end
  	Duel.SendtoGrave(e:GetHandler(), REASON_COST)
  end
  function s.seqtg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
  	if chkc then
  		return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1 - tp)
  	end
  	if chk == 0 then
  		return Duel.IsExistingTarget(nil, tp, 0, LOCATION_MZONE, 1, nil) and Duel.GetLocationCount(1 - tp, LOCATION_MZONE, PLAYER_NONE, 0) > 0
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, aux.Stringid(id, 0))
  	Duel.SelectTarget(tp, nil, tp, 0, LOCATION_MZONE, 1, 1, nil)
  end
  function s.seqop(e, tp, eg, ep, ev, re, r, rp)
  	local tc = Duel.GetFirstTarget()
  	if not tc:IsRelateToEffect(e) or tc:IsControler(tp) or Duel.GetLocationCount(1 - tp, LOCATION_MZONE, PLAYER_NONE, 0) <= 0 then
  		return
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TOZONE)
  	local s = Duel.SelectDisableField(tp, 1, 0, LOCATION_MZONE, 0)
  	local nseq = math.log(bit.rshift(s, 16), 2)
  	Duel.MoveSequence(tc, nseq)
  end
  
  
source_text: Wattkinetic
  (Quick Effect): You can send this card from your hand or field to the GY, then target 1 monster your opponent controls; move that target to another of their Main Monster Zones.
target_text: -- Wattkinetic
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--move
  	local e2 = Effect.CreateEffect(c)
  	e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	e2:SetType(EFFECT_TYPE_QUICK_O)
  	e2:SetCode(EVENT_FREE_CHAIN)
  	e2:SetRange(LOCATION_HAND + LOCATION_MZONE)
  	e2:SetCountLimit(1)
  	e2:SetCost(s.seqcost)
  	e2:SetTarget(s.seqtg)
  	e2:SetOperation(s.seqop)
  	c:RegisterEffect(e2)
  end
  function s.seqcost(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return e:GetHandler():IsAbleToGraveAsCost()
  	end
  	Duel.SendtoGrave(e:GetHandler(), REASON_COST)
  end
  function s.seqtg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
  	if chkc then
  		return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1 - tp)
  	end
  	if chk == 0 then
  		return Duel.IsExistingTarget(nil, tp, 0, LOCATION_MZONE, 1, nil) and Duel.GetLocationCount(1 - tp, LOCATION_MZONE, PLAYER_NONE, 0) > 0
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, aux.Stringid(id, 0))
  	Duel.SelectTarget(tp, nil, tp, 0, LOCATION_MZONE, 1, 1, nil)
  end
  function s.seqop(e, tp, eg, ep, ev, re, r, rp)
  	local tc = Duel.GetFirstTarget()
  	if not tc:IsRelateToEffect(e) or tc:IsControler(tp) or Duel.GetLocationCount(1 - tp, LOCATION_MZONE, PLAYER_NONE, 0) <= 0 then
  		return
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TOZONE)
  	local s = Duel.SelectDisableField(tp, 1, 0, LOCATION_MZONE, 0)
  	local nseq = math.log(bit.rshift(s, 16), 2)
  	Duel.MoveSequence(tc, nseq)
  end
  
  