Commit 74e7ec53 authored by DailyShana's avatar DailyShana

fix free chain continuous effect

close #293
parent f58bba9b
......@@ -2169,7 +2169,7 @@ int32 field::process_idle_command(uint16 step) {
if(peffect->type & EFFECT_TYPE_CONTINUOUS) {
core.select_chains.clear();
solve_continuous(peffect->get_handler_player(), peffect, nil_event);
core.units.begin()->step = -1;
core.units.begin()->step = 2;
return FALSE;
}
card* phandler = peffect->get_handler();
......@@ -2240,6 +2240,12 @@ int32 field::process_idle_command(uint16 step) {
core.units.begin()->step = -1;
return FALSE;
}
case 3: {
adjust_instant();
add_process(PROCESSOR_POINT_EVENT, 0, 0, 0, 0, 0);
core.units.begin()->step = -1;
return FALSE;
}
case 5: {
card* target = core.summonable_cards[returns.ivalue[0] >> 16];
core.summon_cancelable = TRUE;
......@@ -2445,7 +2451,7 @@ int32 field::process_battle_command(uint16 step) {
if(peffect->type & EFFECT_TYPE_CONTINUOUS) {
core.select_chains.clear();
solve_continuous(peffect->get_handler_player(), peffect, nil_event);
core.units.begin()->step = -1;
core.units.begin()->step = 13;
return FALSE;
}
card* phandler = peffect->get_handler();
......@@ -2734,6 +2740,12 @@ int32 field::process_battle_command(uint16 step) {
adjust_all();
return FALSE;
}
case 14: {
adjust_instant();
add_process(PROCESSOR_POINT_EVENT, 0, 0, 0, 0, 0);
core.units.begin()->step = -1;
return FALSE;
}
case 19: {
infos.phase = PHASE_DAMAGE;
core.chain_attack = FALSE;
......
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