Commit 0d109dc5 authored by Momobako's avatar Momobako
parents 2634d342 5ae805f6
......@@ -3570,7 +3570,7 @@ int32 scriptlib::duel_set_dice_result(lua_State * L) {
int32 res;
for(int32 i = 0; i < 5; ++i) {
res = lua_tointeger(L, i + 1);
if(res < 1 || res > 6)
if(res < 1 || res > 255)
res = 1;
pduel->game_field->core.dice_result[i] = res;
}
......
......@@ -4233,6 +4233,14 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret,
}
if(ct <= 0)
return TRUE;
if((zone & zone - 1) == 0) {
for(uint8 seq = 0; seq < 8; seq++) {
if((1 << seq) & zone) {
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