Commit 1a2aab97 authored by POLYMER's avatar POLYMER

fix

parent fc0d07e5
No preview for this file type
...@@ -35,13 +35,13 @@ function c49811196.tdfilter(c) ...@@ -35,13 +35,13 @@ function c49811196.tdfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToDeck() return c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
end end
function c49811196.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) function c49811196.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c49811196.tdfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil) and Duel.IsPlayerCanSummon(tp) and Duel.IsPlayerCanAdditionalSummon(tp) end if chk==0 then return Duel.IsExistingMatchingCard(c49811196.tdfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
end end
function c49811196.tdop(e,tp,eg,ep,ev,re,r,rp) function c49811196.tdop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c49811196.tdfilter,p,LOCATION_HAND+LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(c49811196.tdfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,nil)
if g:GetCount()>=1 then if g:GetCount()>=1 then
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg=g:Select(tp,1,5,nil) local sg=g:Select(tp,1,5,nil)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
Duel.SendtoDeck(sg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) Duel.SendtoDeck(sg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment