Commit 5f1f71d2 authored by nanahira's avatar nanahira

update Duel.SelectDisableField for extra mzone

parent 28d954ee
......@@ -3459,6 +3459,17 @@ int32 scriptlib::duel_select_disable_field(lua_State * L) {
flag = (flag & 0xffffff) | (plist << 24);
}
flag |= filter | 0xe0e0e0e0;
int32 allow_exzone = lua_toboolean(L, 6);
if (allow_exzone && pduel->game_field->core.duel_rule >= 4) {
if(pduel->game_field->is_location_useable(playerid, LOCATION_MZONE, 5)) {
++ct1;
flag &= ~0x20;
}
if(pduel->game_field->is_location_useable(playerid, LOCATION_MZONE, 6)) {
++ct1;
flag &= ~0x40;
}
}
if(count > ct1 + ct2 + ct3 + ct4)
count = ct1 + ct2 + ct3 + ct4;
if(count == 0)
......
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