Commit c6bc85b3 authored by wyykak's avatar wyykak

change 2p reroll mode

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