Commit c6bc85b3 authored by wyykak's avatar wyykak

change 2p reroll mode

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent 0a4106ec
Pipeline #11373 passed with stage
in 2 minutes and 55 seconds
...@@ -727,13 +727,12 @@ function this.fullrandom(mainc,extrac) ...@@ -727,13 +727,12 @@ function this.fullrandom(mainc,extrac)
end end
function this.reroll(tp) function this.reroll(tp)
local ct=3 if Duel.SelectYesNo(tp,aux.Stringid(cc,12)) then
while ct>0 and Duel.SelectYesNo(tp,aux.Stringid(cc,12)) do Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0) local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_HAND,0,0,99,nil)
Duel.SendtoDeck(g,tp,0,REASON_RULE) Duel.SendtoDeck(g,tp,0,REASON_RULE)
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.Draw(tp,#g-1,REASON_RULE) Duel.Draw(tp,#g,REASON_RULE)
ct=ct-1
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