Commit 8bb64fce authored by TanakaKotoha's avatar TanakaKotoha

mopempoe

parent 19243c9a
...@@ -24,18 +24,17 @@ function cm.turnupop(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,18 +24,17 @@ function cm.turnupop(e,tp,eg,ep,ev,re,r,rp)
local ac=Duel.AnnounceCard(tp,table.unpack(getmetatable(e:GetHandler()).announce_filter)) local ac=Duel.AnnounceCard(tp,table.unpack(getmetatable(e:GetHandler()).announce_filter))
local sg=Duel.GetFieldGroup(tp,0,LOCATION_HAND) local sg=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
Duel.ConfirmCards(tp,sg) Duel.ConfirmCards(tp,sg)
Duel.ShuffleHand(1-tp)
local g=Duel.GetMatchingGroup(Card.IsCode,tp,0,LOCATION_HAND,nil,ac) local g=Duel.GetMatchingGroup(Card.IsCode,tp,0,LOCATION_HAND,nil,ac)
if g:GetCount()>0 then if g:GetCount()>0 then
if g:IsExists(cm.turnupfilter,1,nil) then if g:IsExists(cm.turnupfilter,1,nil) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SUMMON) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_SUMMON)
local sc=g:Select(tp,1,1,nil) local sc=g:Select(1-tp,1,1,nil)
Duel.MSet(tp,sc:GetFirst(),true,nil) Duel.MSet(tp,sc:GetFirst(),true,nil)
end end
if g:IsExists(cm.setfilter,1,nil) then if g:IsExists(cm.setfilter,1,nil) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local sc=g:Select(tp,1,1,nil) local sc=g:Select(1-tp,1,1,nil)
Duel.SSet(tp,sc) Duel.SSet(1-tp,sc,tp)
Duel.ConfirmCards(1-tp,sc) Duel.ConfirmCards(1-tp,sc)
end end
end end
......
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