--高速决斗技能-奇迹抽卡
Duel.LoadScript("speed_duel_common.lua")
function c100730193.initial_effect(c)
	aux.SpeedDuelReplaceDraw(c,c100730193.skill,c100730193.con,aux.Stringid(100730193,1))
	aux.SpeedDuelBeforeDraw(c,c100730193.skill2)
	aux.RegisterSpeedDuelSkillCardCommon()
end
function c100730193.skill2(e,tp)
	tp=e:GetLabelObject():GetOwner()
	Duel.Hint(HINT_CARD,1-tp,100730136)
	local tc=Duel.CreateToken(tp,97362768)
	aux.SpeedDuelSendToHandWithExile(tp,tc)
	e:Reset()
end

function c100730193.filter(c)
	return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x3008)
end

function c100730193.con(e,tp)
	tp=e:GetLabelObject():GetOwner()
	return Duel.GetTurnPlayer()==tp
		and Duel.IsExistingMatchingCard(c100730193.filter,tp,LOCATION_GRAVE,0,1,nil)
		and Duel.GetTurnCount()>=3
end

function c100730193.skill(e,tp)
	tp=e:GetLabelObject():GetOwner()
	return Duel.GetTurnPlayer()==tp
	if Duel.SelectYesNo(tp,aux.Stringid(100730193,0)) then
		Duel.Hint(HINT_CARD,1-tp,100730193)
		local c=Duel.CreateToken(tp,55144522)
		Duel.SendtoDeck(c,tp,0,REASON_RULE)
		e:Reset()
	end
end