Commit f7256c2e authored by nanahira's avatar nanahira

Revert "remove old behavior of Duel.AnnounceCard"

This reverts commit b33e18fc.
parent c2ac657d
...@@ -3872,6 +3872,9 @@ int32 scriptlib::duel_announce_card(lua_State * L) { ...@@ -3872,6 +3872,9 @@ int32 scriptlib::duel_announce_card(lua_State * L) {
pduel->game_field->core.select_options.clear(); pduel->game_field->core.select_options.clear();
if(lua_gettop(L) == 1) { if(lua_gettop(L) == 1) {
pduel->game_field->core.select_options.push_back(TRUE); pduel->game_field->core.select_options.push_back(TRUE);
} else if(lua_gettop(L) == 2) {
pduel->game_field->core.select_options.push_back((uint32)lua_tointeger(L, 2));
pduel->game_field->core.select_options.push_back(OPCODE_ISTYPE);
} else { } else {
for(int32 i = 2; i <= lua_gettop(L); ++i) for(int32 i = 2; i <= lua_gettop(L); ++i)
pduel->game_field->core.select_options.push_back((uint32)lua_tointeger(L, i)); pduel->game_field->core.select_options.push_back((uint32)lua_tointeger(L, i));
......
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