--高速决斗技能-天使的微笑
Duel.LoadScript("speed_duel_common.lua")
function c100730254.initial_effect(c)
	aux.SpeedDuelAtMainPhase(c,c100730254.skill,c100730254.con,aux.Stringid(100730254,0))
	aux.RegisterSpeedDuelSkillCardCommon()
end
function c100730254.con(e,tp)
	tp=e:GetLabelObject():GetOwner()
	return aux.SpeedDuelAtMainPhaseCondition(e,tp)
		and Duel.IsExistingMatchingCard(Card.IsRace,tp,LOCATION_HAND,0,1,nil,RACE_FAIRY)
end
function c100730254.skill(e,tp,c)
	tp=e:GetLabelObject():GetOwner()
	Duel.Hint(HINT_CARD,1-tp,100730254)
	local g=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_HAND,0,1,nil,RACE_FAIRY)
	local g1=g:Select(tp,1,1,nil)
	if g1 then
		Duel.ConfirmCards(1-tp,g1)
		Duel.Recover(tp,1000,REASON_EFFECT)
		local g2=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,0,1,nil,2130625)
		if g2:GetCount()==0 then return end
		Duel.SendtoHand(g2,tp,REASON_RULE)
		Duel.ConfirmCards(1-tp,g2)
	end
end