Commit 75c8695e authored by salix5's avatar salix5

add is_gemini_summoning

parent 3c1f5f3c
...@@ -300,6 +300,7 @@ struct processor { ...@@ -300,6 +300,7 @@ struct processor {
uint8 coin_result[MAX_COIN_COUNT]{}; uint8 coin_result[MAX_COIN_COUNT]{};
int32 coin_count{ 0 }; int32 coin_count{ 0 };
bool is_target_ready{ false }; bool is_target_ready{ false };
bool is_gemini_summoning{ false };
uint8 to_bp{ FALSE }; uint8 to_bp{ FALSE };
uint8 to_m2{ FALSE }; uint8 to_m2{ FALSE };
......
...@@ -1824,6 +1824,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui ...@@ -1824,6 +1824,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
target->summon_info |= SUMMON_TYPE_NORMAL; target->summon_info |= SUMMON_TYPE_NORMAL;
target->current.reason_effect = 0; target->current.reason_effect = 0;
target->current.reason_player = sumplayer; target->current.reason_player = sumplayer;
core.is_gemini_summoning = true;
effect* deffect = pduel->new_effect(); effect* deffect = pduel->new_effect();
deffect->owner = target; deffect->owner = target;
deffect->code = EFFECT_DUAL_STATUS; deffect->code = EFFECT_DUAL_STATUS;
...@@ -1895,6 +1896,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui ...@@ -1895,6 +1896,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
core.units.begin()->step = 14; core.units.begin()->step = 14;
return FALSE; return FALSE;
} }
core.is_gemini_summoning = false;
if(proc) { if(proc) {
remove_oath_effect(proc); remove_oath_effect(proc);
if(proc->is_flag(EFFECT_FLAG_COUNT_LIMIT) && (proc->count_code & EFFECT_COUNT_CODE_OATH)) { if(proc->is_flag(EFFECT_FLAG_COUNT_LIMIT) && (proc->count_code & EFFECT_COUNT_CODE_OATH)) {
...@@ -1914,6 +1916,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui ...@@ -1914,6 +1916,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
return TRUE; return TRUE;
} }
case 15: { case 15: {
core.is_gemini_summoning = false;
if(proc) { if(proc) {
release_oath_relation(proc); release_oath_relation(proc);
} }
......
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