diff --git a/libduel.cpp b/libduel.cpp index 8b5f2b64e..99dec91d4 100644 --- a/libduel.cpp +++ b/libduel.cpp @@ -4765,6 +4765,11 @@ int32 scriptlib::duel_majestic_copy(lua_State *L) { } return 0; } +int32 scriptlib::duel_assume_reset(lua_State *L) { + duel* pduel = interpreter::get_duel_info(L); + pduel->restore_assumes(); + return 0; +} static const struct luaL_Reg duellib[] = { { "EnableGlobalFlag", scriptlib::duel_enable_global_flag }, @@ -4993,6 +4998,7 @@ static const struct luaL_Reg duellib[] = { { "IsAbleToEnterBP", scriptlib::duel_is_able_to_enter_bp }, { "SwapDeckAndGrave", scriptlib::duel_swap_deck_and_grave }, { "MajesticCopy", scriptlib::duel_majestic_copy }, + { "AssumeReset", scriptlib::duel_assume_reset }, { NULL, NULL } }; void scriptlib::open_duellib(lua_State *L) { diff --git a/scriptlib.h b/scriptlib.h index 681976b55..f96f7ac60 100644 --- a/scriptlib.h +++ b/scriptlib.h @@ -623,6 +623,7 @@ class scriptlib { //specific card functions static int32 duel_swap_deck_and_grave(lua_State *L); static int32 duel_majestic_copy(lua_State *L); + static int32 duel_assume_reset(lua_State *L); static void open_duellib(lua_State *L);