Commit 2919bdcc authored by fallenstardust's avatar fallenstardust

sync ocgcore

parent dbd18810
......@@ -2837,15 +2837,11 @@ int32 scriptlib::duel_set_target_card(lua_State *L) {
}
if(peffect->is_flag(EFFECT_FLAG_CARD_TARGET)) {
if(pcard) {
if(pcard->current.location & 0x30)
pduel->game_field->move_card(pcard->current.controler, pcard, pcard->current.location, 0);
pduel->write_buffer8(MSG_BECOME_TARGET);
pduel->write_buffer8(1);
pduel->write_buffer32(pcard->get_info_location());
} else {
for(auto& pcard : pgroup->container) {
if(pcard->current.location & 0x30)
pduel->game_field->move_card(pcard->current.controler, pcard, pcard->current.location, 0);
pduel->write_buffer8(MSG_BECOME_TARGET);
pduel->write_buffer8(1);
pduel->write_buffer32(pcard->get_info_location());
......
......@@ -76,8 +76,6 @@ void field::change_target(uint8 chaincount, group* targets) {
pcard->create_relation(core.current_chain[chaincount - 1]);
if(te->is_flag(EFFECT_FLAG_CARD_TARGET)) {
for(auto& pcard : ot->container) {
if(pcard->current.location & 0x30)
move_card(pcard->current.controler, pcard, pcard->current.location, 0);
pduel->write_buffer8(MSG_BECOME_TARGET);
pduel->write_buffer8(1);
pduel->write_buffer32(pcard->get_info_location());
......
......@@ -771,8 +771,6 @@ int32 field::process() {
if((returns.bvalue[0] > 0) && peffect->is_flag(EFFECT_FLAG_CARD_TARGET)) {
for(int32 i = 0; i < returns.bvalue[0]; ++i) {
card* pcard = core.select_cards[returns.bvalue[i + 1]];
if(pcard->current.location & 0x30)
move_card(pcard->current.controler, pcard, pcard->current.location, 0);
pduel->write_buffer8(MSG_BECOME_TARGET);
pduel->write_buffer8(1);
pduel->write_buffer32(pcard->get_info_location());
......@@ -4246,8 +4244,6 @@ int32 field::add_chain(uint16 step) {
change_position(phandler, 0, phandler->current.controler, POS_FACEUP, 0);
}
}
if(phandler->current.location & (LOCATION_GRAVE | LOCATION_REMOVED))
move_card(phandler->current.controler, phandler, phandler->current.location, 0);
return FALSE;
}
case 1: {
......
......@@ -27,6 +27,7 @@
优化:
1.新版本更新提示对话框;
2.连锁数字显示;
3.墓地卡显示状态标签;
</pre>
</body>
</html>
\ No newline at end of file
......@@ -223,6 +223,6 @@
<string name="Already_Lastest">이미 최신 버전입니다.</string>
<string name="about_immersive_mode">16:9 화면 비율이 아닌 휴대전화 또는 터치 포인트가 어긋나는 경우 설정하십시오.</string>
<string name="Download">다운로드</string>
<string name="Downloading">다운로드 중 기다려주십시오</string>
<string name="Downloading">다운로드 중입니다. 잠시 기다려 주십시오.</string>
<string name="Update_Found">새로운 버전</string>
</resources>
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