Commit 5734eb11 authored by nanahira's avatar nanahira

use MSG_UPDATE_CARD for SetEntityCode

parent 2a688aeb
...@@ -34,11 +34,13 @@ uint32_t card::set_entity_code(uint32_t entity_code, bool remove_alias) { ...@@ -34,11 +34,13 @@ uint32_t card::set_entity_code(uint32_t entity_code, bool remove_alias) {
if (remove_alias && dat.alias) if (remove_alias && dat.alias)
dat.alias = 0; dat.alias = 0;
data = dat; data = dat;
pduel->write_buffer8(MSG_MOVE); pduel->write_buffer8(MSG_UPDATE_CARD);
pduel->write_buffer32(data.code); pduel->write_buffer8(current.controler);
pduel->write_buffer32(get_info_location()); pduel->write_buffer8(current.location);
pduel->write_buffer32(get_info_location()); pduel->write_buffer8(current.sequence);
pduel->write_buffer32(0); unsigned char query_buffer[0x1000];
auto query_len = get_infos(query_buffer, 0xe81fff, 0);
pduel->write_buffer(query_buffer, query_len);
return code; return code;
} }
uint32_t card::get_summon_info() { uint32_t card::get_summon_info() {
......
...@@ -256,7 +256,7 @@ inline bool check_playerid(int32_t playerid) { ...@@ -256,7 +256,7 @@ inline bool check_playerid(int32_t playerid) {
//#define MSG_START 4 //#define MSG_START 4
#define MSG_WIN 5 #define MSG_WIN 5
//#define MSG_UPDATE_DATA 6 //#define MSG_UPDATE_DATA 6
//#define MSG_UPDATE_CARD 7 #define MSG_UPDATE_CARD 7
//#define MSG_REQUEST_DECK 8 //#define MSG_REQUEST_DECK 8
#define MSG_SELECT_BATTLECMD 10 #define MSG_SELECT_BATTLECMD 10
#define MSG_SELECT_IDLECMD 11 #define MSG_SELECT_IDLECMD 11
......
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