Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add duel_assume_reset #386

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libduel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
#include "group.h"
#include "ocgapi.h"

int32 scriptlib::duel_assume_reset(lua_State *L) {
duel* pduel = interpreter::get_duel_info(L);
pduel->restore_assumes();
return 1;
}

int32 scriptlib::duel_enable_global_flag(lua_State *L) {
check_param_count(L, 1);
int32 flag = (int32)lua_tointeger(L, 1);
Expand Down
1 change: 1 addition & 0 deletions scriptlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ class scriptlib {
static void open_grouplib(lua_State *L);

//Duel functions
static int32 duel_assume_reset(lua_State *L);
static int32 duel_enable_global_flag(lua_State *L);
static int32 duel_get_lp(lua_State *L);
static int32 duel_set_lp(lua_State *L);
Expand Down