name: Extra
card_text: If a monster(s) is Special Summoned from the Extra Deck: The opponent of the player that conducted the Special Summon can apply this effect.
  ● Draw 1 card.
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)
  	c:RegisterEffect(e1)
  	--
  	local e2 = Effect.CreateEffect(c)
  	e2:SetDescription(aux.Stringid(id, 0))
  	e2:SetCategory(CATEGORY_DRAW)
  	e2:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_F)
  	e2:SetCode(EVENT_SPSUMMON_SUCCESS)
  	e2:SetRange(LOCATION_FZONE)
  	e2:SetCondition(s.condition)
  	e2:SetTarget(s.target)
  	e2:SetOperation(s.operation)
  	c:RegisterEffect(e2)
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	return eg:IsExists(Card.IsPreviousLocation, 1, nil, LOCATION_EXTRA)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  end
  function s.filter(c, tp)
  	return c:IsSummonPlayer(tp)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	if eg:IsExists(s.filter, 1, nil, tp) and Duel.IsPlayerCanDraw(1 - tp, 1) and Duel.SelectYesNo(1 - tp, aux.Stringid(id, 1)) then
  		Duel.Draw(1 - tp, 1, REASON_EFFECT)
  	end
  	if eg:IsExists(s.filter, 1, nil, 1 - tp) and Duel.IsPlayerCanDraw(tp, 1) and Duel.SelectYesNo(tp, aux.Stringid(id, 1)) then
  		Duel.Draw(tp, 1, REASON_EFFECT)
  	end
  end
  
  
source_text: Extra
  If a monster(s) is Special Summoned from the Extra Deck: The opponent of the player that conducted the Special Summon can apply this effect.
  ● Draw 1 card.
target_text: -- Extra
  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)
  	c:RegisterEffect(e1)
  	--
  	local e2 = Effect.CreateEffect(c)
  	e2:SetDescription(aux.Stringid(id, 0))
  	e2:SetCategory(CATEGORY_DRAW)
  	e2:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_F)
  	e2:SetCode(EVENT_SPSUMMON_SUCCESS)
  	e2:SetRange(LOCATION_FZONE)
  	e2:SetCondition(s.condition)
  	e2:SetTarget(s.target)
  	e2:SetOperation(s.operation)
  	c:RegisterEffect(e2)
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	return eg:IsExists(Card.IsPreviousLocation, 1, nil, LOCATION_EXTRA)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  end
  function s.filter(c, tp)
  	return c:IsSummonPlayer(tp)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	if eg:IsExists(s.filter, 1, nil, tp) and Duel.IsPlayerCanDraw(1 - tp, 1) and Duel.SelectYesNo(1 - tp, aux.Stringid(id, 1)) then
  		Duel.Draw(1 - tp, 1, REASON_EFFECT)
  	end
  	if eg:IsExists(s.filter, 1, nil, 1 - tp) and Duel.IsPlayerCanDraw(tp, 1) and Duel.SelectYesNo(tp, aux.Stringid(id, 1)) then
  		Duel.Draw(tp, 1, REASON_EFFECT)
  	end
  end
  
  