Commit c29187b7 authored by salix5's avatar salix5

fix

parent 59863fd6
...@@ -1210,7 +1210,7 @@ int32 scriptlib::duel_change_attack_target(lua_State *L) { ...@@ -1210,7 +1210,7 @@ int32 scriptlib::duel_change_attack_target(lua_State *L) {
else else
pduel->game_field->core.opp_mzone[i] = 0; pduel->game_field->core.opp_mzone[i] = 0;
} }
check_card_counter(core.attacker, 5, infos.turn_player); pduel->game_field->check_card_counter(pduel->game_field->core.attacker, 5, pduel->game_field->infos.turn_player);
if(target) { if(target) {
pduel->game_field->raise_single_event(target, 0, EVENT_BE_BATTLE_TARGET, 0, REASON_REPLACE, 0, 1 - turnp, 0); pduel->game_field->raise_single_event(target, 0, EVENT_BE_BATTLE_TARGET, 0, REASON_REPLACE, 0, 1 - turnp, 0);
pduel->game_field->raise_event(target, EVENT_BE_BATTLE_TARGET, 0, REASON_REPLACE, 0, 1 - turnp, 0); pduel->game_field->raise_event(target, EVENT_BE_BATTLE_TARGET, 0, REASON_REPLACE, 0, 1 - turnp, 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