Commit 72da9d3a authored by nanahira's avatar nanahira

add a zone param to Duel.MoveToField

parent a6d1bf9e
......@@ -681,10 +681,13 @@ int32 scriptlib::duel_move_to_field(lua_State *L) {
uint32 destination = lua_tointeger(L, 4);
uint32 positions = lua_tointeger(L, 5);
uint32 enable = lua_toboolean(L, 6);
uint32 zone = 0xff;
if(lua_gettop(L) > 6)
zone = lua_tointeger(L, 7);
duel* pduel = pcard->pduel;
pcard->enable_field_effect(false);
pduel->game_field->adjust_instant();
pduel->game_field->move_to_field(pcard, move_player, playerid, destination, positions, enable);
pduel->game_field->move_to_field(pcard, move_player, playerid, destination, positions, enable, 0, FALSE, zone);
pduel->game_field->core.subunits.back().type = PROCESSOR_MOVETOFIELD_S;
return lua_yield(L, 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