Commit 05b1fc1a authored by nanahira's avatar nanahira

update Duel.SetCardData

parent cbcf0a2e
...@@ -40,6 +40,7 @@ int32 scriptlib::card_set_card_data(lua_State *L) { ...@@ -40,6 +40,7 @@ int32 scriptlib::card_set_card_data(lua_State *L) {
check_param_count(L, 3); check_param_count(L, 3);
check_param(L, PARAM_TYPE_CARD, 1); check_param(L, PARAM_TYPE_CARD, 1);
card* pcard = *(card**) lua_touserdata(L, 1); card* pcard = *(card**) lua_touserdata(L, 1);
duel* pduel = pcard->pduel;
int32 stype = lua_tointeger(L, 2); int32 stype = lua_tointeger(L, 2);
switch(stype) { switch(stype) {
case CARDDATA_CODE: case CARDDATA_CODE:
...@@ -79,6 +80,11 @@ int32 scriptlib::card_set_card_data(lua_State *L) { ...@@ -79,6 +80,11 @@ int32 scriptlib::card_set_card_data(lua_State *L) {
pcard->data.link_marker = lua_tointeger(L, 3); pcard->data.link_marker = lua_tointeger(L, 3);
break; break;
} }
pduel->write_buffer8(MSG_MOVE);
pduel->write_buffer32(pcard->data.code);
pduel->write_buffer32(pcard->get_info_location());
pduel->write_buffer32(pcard->get_info_location());
pduel->write_buffer32(0);
return 0; return 0;
} }
int32 scriptlib::card_get_link_marker(lua_State *L) { int32 scriptlib::card_get_link_marker(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