--高速决斗技能-一手起动器
Duel.LoadScript("speed_duel_common.lua")
function c100730143.initial_effect(c)
	aux.SpeedDuelBeforeDraw(c,c100730143.skill)
	aux.RegisterSpeedDuelSkillCardCommon()
end
function c100730143.skill(e,tp,eg,ep,ev,re,r,rp)
	tp=e:GetLabelObject():GetOwner()
	e:Reset()
	if Duel.IsExistingMatchingCard(Card.IsAttribute,tp,LOCATION_DECK,0,1,nil,0x5f) then
		Duel.Hint(HINT_MESSAGE,tp,aux.Stringid(100730143,0))
	else
		local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_HAND,0,nil)
		local ct=g:GetCount()
		local c=g:Select(tp,ct-1,ct-1,nil)
		Duel.SendtoDeck(c,nil,2,REASON_RULE)
		local e1=Effect.GlobalEffect()
		e1:SetType(EFFECT_TYPE_FIELD)
		e1:SetCode(EFFECT_DRAW_COUNT)
		e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
		e1:SetTargetRange(1,0)
		e1:SetValue(2)
		Duel.RegisterEffect(e1,tp)
	end
end
