Commit 1d11840d authored by VanillaSalt's avatar VanillaSalt

fix

stop decrease the counter for EFFECT_EXTRA_RELEASE_SUM effect when
canceling tribute summon
parent 0a34f5dc
...@@ -4625,8 +4625,7 @@ int32 field::select_tribute_cards(int16 step, uint8 playerid, uint8 cancelable, ...@@ -4625,8 +4625,7 @@ int32 field::select_tribute_cards(int16 step, uint8 playerid, uint8 cancelable,
for(int32 i = 0; i < returns.bvalue[0]; ++i) { for(int32 i = 0; i < returns.bvalue[0]; ++i) {
card* pcard = core.select_cards[returns.bvalue[i + 1]]; card* pcard = core.select_cards[returns.bvalue[i + 1]];
core.operated_set.insert(pcard); core.operated_set.insert(pcard);
effect* peffect = pcard->is_affected_by_effect(EFFECT_EXTRA_RELEASE_SUM); core.units.begin()->peffect = pcard->is_affected_by_effect(EFFECT_EXTRA_RELEASE_SUM);
peffect->dec_count();
} }
return FALSE; return FALSE;
} }
...@@ -4691,6 +4690,9 @@ int32 field::select_tribute_cards(int16 step, uint8 playerid, uint8 cancelable, ...@@ -4691,6 +4690,9 @@ int32 field::select_tribute_cards(int16 step, uint8 playerid, uint8 cancelable,
core.select_cards.push_back(*cit); core.select_cards.push_back(*cit);
returns.bvalue[i + 1] = i; returns.bvalue[i + 1] = i;
} }
effect* peffect = core.units.begin()->peffect;
if(peffect)
peffect->dec_count();
return TRUE; return TRUE;
} }
} }
......
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