Commit 36bfb558 authored by Chen Bill's avatar Chen Bill Committed by GitHub

add scope operator (#577)

parent 04e359db
...@@ -1996,7 +1996,7 @@ void card::remove_effect(effect* peffect, effect_container::iterator it) { ...@@ -1996,7 +1996,7 @@ void card::remove_effect(effect* peffect, effect_container::iterator it) {
} }
int32 card::copy_effect(uint32 code, uint32 reset, uint32 count) { int32 card::copy_effect(uint32 code, uint32 reset, uint32 count) {
card_data cdata; card_data cdata;
read_card(code, &cdata); ::read_card(code, &cdata);
if(cdata.type & TYPE_NORMAL) if(cdata.type & TYPE_NORMAL)
return -1; return -1;
set_status(STATUS_COPYING_EFFECT, TRUE); set_status(STATUS_COPYING_EFFECT, TRUE);
...@@ -2032,7 +2032,7 @@ int32 card::copy_effect(uint32 code, uint32 reset, uint32 count) { ...@@ -2032,7 +2032,7 @@ int32 card::copy_effect(uint32 code, uint32 reset, uint32 count) {
} }
int32 card::replace_effect(uint32 code, uint32 reset, uint32 count) { int32 card::replace_effect(uint32 code, uint32 reset, uint32 count) {
card_data cdata; card_data cdata;
read_card(code, &cdata); ::read_card(code, &cdata);
if(cdata.type & TYPE_NORMAL) if(cdata.type & TYPE_NORMAL)
return -1; return -1;
if(is_status(STATUS_EFFECT_REPLACED)) if(is_status(STATUS_EFFECT_REPLACED))
......
...@@ -985,7 +985,7 @@ int32 field::announce_card(int16 step, uint8 playerid) { ...@@ -985,7 +985,7 @@ int32 field::announce_card(int16 step, uint8 playerid) {
} else { } else {
int32 code = returns.ivalue[0]; int32 code = returns.ivalue[0];
card_data data; card_data data;
read_card(code, &data); ::read_card(code, &data);
if(!data.code) { if(!data.code) {
pduel->write_buffer8(MSG_RETRY); pduel->write_buffer8(MSG_RETRY);
return FALSE; return FALSE;
......
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