Commit fa24c16c authored by Argon.Sun's avatar Argon.Sun

update

parent 75038aeb
...@@ -2253,14 +2253,12 @@ int32 scriptlib::duel_set_target_card(lua_State *L) { ...@@ -2253,14 +2253,12 @@ int32 scriptlib::duel_set_target_card(lua_State *L) {
if(pcard->current.location & 0x30) if(pcard->current.location & 0x30)
pduel->game_field->move_card(pcard->current.controler, pcard, pcard->current.location, 0); pduel->game_field->move_card(pcard->current.controler, pcard, pcard->current.location, 0);
pduel->write_buffer8(MSG_BECOME_TARGET); pduel->write_buffer8(MSG_BECOME_TARGET);
pduel->write_buffer8(1);
pduel->write_buffer32(pcard->get_info_location()); pduel->write_buffer32(pcard->get_info_location());
} else { } else {
for(auto cit = pgroup->container.begin(); cit != pgroup->container.end(); ++cit) { for(auto cit = pgroup->container.begin(); cit != pgroup->container.end(); ++cit) {
if((*cit)->current.location & 0x30) if((*cit)->current.location & 0x30)
pduel->game_field->move_card((*cit)->current.controler, (*cit), (*cit)->current.location, 0); pduel->game_field->move_card((*cit)->current.controler, (*cit), (*cit)->current.location, 0);
pduel->write_buffer8(MSG_BECOME_TARGET); pduel->write_buffer8(MSG_BECOME_TARGET);
pduel->write_buffer8(1);
pduel->write_buffer32((*cit)->get_info_location()); pduel->write_buffer32((*cit)->get_info_location());
} }
} }
...@@ -2573,7 +2571,6 @@ int32 scriptlib::duel_hint_selection(lua_State *L) { ...@@ -2573,7 +2571,6 @@ int32 scriptlib::duel_hint_selection(lua_State *L) {
if(pcard->current.location & 0x30) if(pcard->current.location & 0x30)
pduel->game_field->move_card(pcard->current.controler, pcard, pcard->current.location, 0); pduel->game_field->move_card(pcard->current.controler, pcard, pcard->current.location, 0);
pduel->write_buffer8(MSG_BECOME_TARGET); pduel->write_buffer8(MSG_BECOME_TARGET);
pduel->write_buffer8(1);
pduel->write_buffer32(pcard->get_info_location()); pduel->write_buffer32(pcard->get_info_location());
} }
return 0; return 0;
......
...@@ -79,7 +79,6 @@ void field::change_target(uint8 chaincount, group* targets) { ...@@ -79,7 +79,6 @@ void field::change_target(uint8 chaincount, group* targets) {
if(cit->current.location & 0x30) if(cit->current.location & 0x30)
move_card(cit->current.controler, cit, cit->current.location, 0); move_card(cit->current.controler, cit, cit->current.location, 0);
pduel->write_buffer8(MSG_BECOME_TARGET); pduel->write_buffer8(MSG_BECOME_TARGET);
pduel->write_buffer8(1);
pduel->write_buffer32(cit->get_info_location()); pduel->write_buffer32(cit->get_info_location());
} }
} }
......
...@@ -733,7 +733,6 @@ int32 field::process() { ...@@ -733,7 +733,6 @@ int32 field::process() {
if(pcard->current.location & 0x30) if(pcard->current.location & 0x30)
move_card(pcard->current.controler, pcard, pcard->current.location, 0); move_card(pcard->current.controler, pcard, pcard->current.location, 0);
pduel->write_buffer8(MSG_BECOME_TARGET); pduel->write_buffer8(MSG_BECOME_TARGET);
pduel->write_buffer8(1);
pduel->write_buffer32(pcard->get_info_location()); pduel->write_buffer32(pcard->get_info_location());
} }
} }
......
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