name: Gold
card_text: Add 2 cards from your hand to your opponent's hand, then draw 2 cards. You can only activate 1 "Gold Moon Coin" per turn.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCategory(CATEGORY_DRAW)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetCountLimit(1, id + EFFECT_COUNT_CODE_OATH)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.activate)
  	c:RegisterEffect(e1)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.IsExistingMatchingCard(aux.TRUE, tp, LOCATION_HAND, 0, 2, e:GetHandler()) and Duel.IsPlayerCanDraw(tp, 2)
  	end
  	Duel.SetOperationInfo(0, CATEGORY_DRAW, nil, 0, tp, 2)
  end
  function s.activate(e, tp, eg, ep, ev, re, r, rp)
  	Duel.Hint(HINT_SELECTMSG, tp, aux.Stringid(id, 0))
  	local ag = Duel.SelectMatchingCard(tp, aux.TRUE, tp, LOCATION_HAND, 0, 2, 2, nil)
  	if ag:GetCount() == 2 then
  		Duel.SendtoHand(ag, 1 - tp, REASON_EFFECT)
  		Duel.ConfirmCards(tp, ag)
  		Duel.ShuffleHand(tp)
  		Duel.ShuffleHand(1 - tp)
  		Duel.BreakEffect()
  		Duel.Draw(tp, 2, REASON_EFFECT)
  	end
  end
  
  
source_text: Gold
  Add 2 cards from your hand to your opponent's hand, then draw 2 cards. You can only activate 1 "Gold Moon Coin" per turn.
target_text: -- Gold
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCategory(CATEGORY_DRAW)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetCountLimit(1, id + EFFECT_COUNT_CODE_OATH)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.activate)
  	c:RegisterEffect(e1)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.IsExistingMatchingCard(aux.TRUE, tp, LOCATION_HAND, 0, 2, e:GetHandler()) and Duel.IsPlayerCanDraw(tp, 2)
  	end
  	Duel.SetOperationInfo(0, CATEGORY_DRAW, nil, 0, tp, 2)
  end
  function s.activate(e, tp, eg, ep, ev, re, r, rp)
  	Duel.Hint(HINT_SELECTMSG, tp, aux.Stringid(id, 0))
  	local ag = Duel.SelectMatchingCard(tp, aux.TRUE, tp, LOCATION_HAND, 0, 2, 2, nil)
  	if ag:GetCount() == 2 then
  		Duel.SendtoHand(ag, 1 - tp, REASON_EFFECT)
  		Duel.ConfirmCards(tp, ag)
  		Duel.ShuffleHand(tp)
  		Duel.ShuffleHand(1 - tp)
  		Duel.BreakEffect()
  		Duel.Draw(tp, 2, REASON_EFFECT)
  	end
  end
  
  