Commit 59863fd6 authored by salix5's avatar salix5

custom ACTIVITY_ATTACK

parent eb499896
......@@ -1210,6 +1210,7 @@ int32 scriptlib::duel_change_attack_target(lua_State *L) {
else
pduel->game_field->core.opp_mzone[i] = 0;
}
check_card_counter(core.attacker, 5, infos.turn_player);
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_event(target, EVENT_BE_BATTLE_TARGET, 0, REASON_REPLACE, 0, 1 - turnp, 0);
......
......@@ -3626,6 +3626,7 @@ int32 field::process_damage_step(uint16 step) {
core.units.begin()->step = 2;
return FALSE;
}
check_card_counter(core.attacker, 5, infos.turn_player);
pduel->write_buffer8(MSG_ATTACK);
pduel->write_buffer32(core.attacker->get_info_location());
pduel->write_buffer32(core.attack_target->get_info_location());
......
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