Commit f3821dfa authored by mercury233's avatar mercury233

fix name of Duel.RevealSelectDeckSequence

parent a3fe63a3
......@@ -350,7 +350,7 @@ struct processor {
uint32 hint_timing[2]{};
uint8 current_player{ PLAYER_NONE };
uint8 conti_player{ PLAYER_NONE };
uint8 select_deck_seq_preserved{ FALSE };
uint8 select_deck_sequence_revealed{ FALSE };
uint8 selecting_player{ PLAYER_NONE };
std::unordered_map<uint32, std::pair<uint32, uint32>> summon_counter;
std::unordered_map<uint32, std::pair<uint32, uint32>> normalsummon_counter;
......
......@@ -1546,12 +1546,12 @@ int32 scriptlib::duel_disable_self_destroy_check(lua_State* L) {
pduel->game_field->core.selfdes_disabled = disable;
return 0;
}
int32 scriptlib::duel_preserve_select_deck_seq(lua_State* L) {
int32 scriptlib::duel_reveal_select_deck_sequence(lua_State* L) {
duel* pduel = interpreter::get_duel_info(L);
uint8 preserve = TRUE;
uint8 reveal = TRUE;
if(lua_gettop(L) > 0)
preserve = lua_toboolean(L, 1);
pduel->game_field->core.select_deck_seq_preserved = preserve;
reveal = lua_toboolean(L, 1);
pduel->game_field->core.select_deck_sequence_revealed = reveal;
return 0;
}
int32 scriptlib::duel_shuffle_deck(lua_State *L) {
......@@ -4876,7 +4876,7 @@ static const struct luaL_Reg duellib[] = {
{ "DiscardHand", scriptlib::duel_discard_hand },
{ "DisableShuffleCheck", scriptlib::duel_disable_shuffle_check },
{ "DisableSelfDestroyCheck", scriptlib::duel_disable_self_destroy_check },
{ "PreserveSelectDeckSequence", scriptlib::duel_preserve_select_deck_seq },
{ "RevealSelectDeckSequence", scriptlib::duel_reveal_select_deck_sequence },
{ "ShuffleDeck", scriptlib::duel_shuffle_deck },
{ "ShuffleExtra", scriptlib::duel_shuffle_extra },
{ "ShuffleHand", scriptlib::duel_shuffle_hand },
......
......@@ -462,7 +462,7 @@ public:
static int32 duel_discard_hand(lua_State *L);
static int32 duel_disable_shuffle_check(lua_State *L);
static int32 duel_disable_self_destroy_check(lua_State *L);
static int32 duel_preserve_select_deck_seq(lua_State *L);
static int32 duel_reveal_select_deck_sequence(lua_State *L);
static int32 duel_shuffle_deck(lua_State *L);
static int32 duel_shuffle_extra(lua_State *L);
static int32 duel_shuffle_hand(lua_State *L);
......
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