Commit 4dd1538c authored by sbl1996@126.com's avatar sbl1996@126.com

Only random discard hand at end phase

parent 6c7ac38a
...@@ -3836,6 +3836,8 @@ private: ...@@ -3836,6 +3836,8 @@ private:
} }
if (discard_hand_) { if (discard_hand_) {
discard_hand_ = false;
if (current_phase_ == PHASE_END) {
// random discard // random discard
std::vector<int> comb(size); std::vector<int> comb(size);
std::iota(comb.begin(), comb.end(), 0); std::iota(comb.begin(), comb.end(), 0);
...@@ -3845,9 +3847,9 @@ private: ...@@ -3845,9 +3847,9 @@ private:
resp_buf_[i + 1] = comb[i]; resp_buf_[i + 1] = comb[i];
} }
YGO_SetResponseb(pduel_, resp_buf_); YGO_SetResponseb(pduel_, resp_buf_);
discard_hand_ = false;
return; return;
} }
}
init_multi_select(min, max, 0, specs); init_multi_select(min, max, 0, specs);
......
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