Commit 7dc435eb authored by nanahira's avatar nanahira

fix

parent abeb64da
Pipeline #19691 passed with stages
in 2 minutes and 41 seconds
......@@ -79,8 +79,8 @@ public:
Deck DuplicateDeck(Deck deck) {
Deck result;
result.main = DuplicateVector(deck.main, 10);
result.extra = DuplicateVector(deck.extra, 5);
result.main = DuplicateVector(deck.main, 5);
result.extra = DuplicateVector(deck.extra, 3);
result.side = DuplicateVector(deck.side, 1);
return result;
}
......
......@@ -577,7 +577,7 @@ void SingleDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
last_replay.WriteInt32(host_info.draw_count, false);
last_replay.WriteInt32(opt, false);
last_replay.Flush();
last_replay.WriteInt32(duplicatedDeck[0].main.size() * 10, false);
last_replay.WriteInt32(duplicatedDeck[0].main.size(), false);
for(int32 i = (int32)duplicatedDeck[0].main.size() - 1; i >= 0; --i) {
new_card(pduel, duplicatedDeck[0].main[i]->first, 0, 0, LOCATION_DECK, 0, POS_FACEDOWN_DEFENSE);
last_replay.WriteInt32(duplicatedDeck[0].main[i]->first, false);
......
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