Commit 76a7d55f authored by mercury233's avatar mercury233 Committed by GitHub

update move_to_field (#167)

parent e23dfaef
......@@ -4185,6 +4185,22 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret,
}
if(ct <= 0)
return TRUE;
bool zone_selected = false;
uint32 seq = 0;
for(uint32 i = 0; i < 8; i++) {
if(((1 << i) & zone) > 0) {
if(zone_selected) {
zone_selected = false;
break;
}
zone_selected = true;
seq = i;
}
}
if(zone_selected) {
returns.bvalue[2] = seq;
return FALSE;
}
if(move_player == playerid) {
if(location == LOCATION_SZONE)
flag = ((flag & 0xff) << 8) | 0xffff00ff;
......
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