Commit ac12ab98 authored by mercury233's avatar mercury233 Committed by GitHub

fix Duel.MoveSequence (#371)

parent d11d5321
...@@ -865,11 +865,13 @@ int32 scriptlib::duel_move_sequence(lua_State *L) { ...@@ -865,11 +865,13 @@ int32 scriptlib::duel_move_sequence(lua_State *L) {
int32 seq = (int32)lua_tointeger(L, 2); int32 seq = (int32)lua_tointeger(L, 2);
duel* pduel = pcard->pduel; duel* pduel = pcard->pduel;
int32 playerid = pcard->current.controler; int32 playerid = pcard->current.controler;
pduel->game_field->move_card(playerid, pcard, pcard->current.location, seq); if(pcard->is_affect_by_effect(pduel->game_field->core.reason_effect)) {
pduel->game_field->raise_single_event(pcard, 0, EVENT_MOVE, pduel->game_field->core.reason_effect, 0, pduel->game_field->core.reason_player, playerid, 0); pduel->game_field->move_card(playerid, pcard, pcard->current.location, seq);
pduel->game_field->raise_event(pcard, EVENT_MOVE, pduel->game_field->core.reason_effect, 0, pduel->game_field->core.reason_player, playerid, 0); pduel->game_field->raise_single_event(pcard, 0, EVENT_MOVE, pduel->game_field->core.reason_effect, 0, pduel->game_field->core.reason_player, playerid, 0);
pduel->game_field->process_single_event(); pduel->game_field->raise_event(pcard, EVENT_MOVE, pduel->game_field->core.reason_effect, 0, pduel->game_field->core.reason_player, playerid, 0);
pduel->game_field->process_instant_event(); pduel->game_field->process_single_event();
pduel->game_field->process_instant_event();
}
return 0; return 0;
} }
int32 scriptlib::duel_swap_sequence(lua_State *L) { int32 scriptlib::duel_swap_sequence(lua_State *L) {
......
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