Commit ff7994b2 authored by salix5's avatar salix5

get_attack_target()

parent 8804e8c6
......@@ -1645,7 +1645,7 @@ int32 field::effect_replace_check(uint32 code, const tevent& e) {
}
return FALSE;
}
int32 field::get_attack_target(card* pcard, card_vector* v, uint8 chain_attack, uint8 sub_attack) {
int32 field::get_attack_target(card* pcard, card_vector* v, uint8 chain_attack) {
uint8 p = pcard->current.controler;
effect* peffect;
card* atarget;
......
......@@ -382,7 +382,7 @@ public:
uint32 get_field_counter(uint8 self, uint8 s, uint8 o, uint16 countertype);
int32 effect_replace_check(uint32 code, const tevent& e);
int32 get_attack_target(card* pcard, card_vector* v, uint8 chain_attack = FALSE, uint8 sub_attack = FALSE);
int32 get_attack_target(card* pcard, card_vector* v, uint8 chain_attack = FALSE);
void attack_all_target_check();
int32 check_synchro_material(card* pcard, int32 findex1, int32 findex2, int32 min, int32 max, card* smat, group* mg);
int32 check_tuner_material(card* pcard, card* tuner, int32 findex1, int32 findex2, int32 min, int32 max, card* smat, group* mg);
......
......@@ -819,7 +819,7 @@ int32 field::get_control(uint16 step, effect* reason_effect, uint8 reason_player
core.units.begin()->step = 5;
return FALSE;
}
if(targets->container.size() > fcount) {
if((int32)targets->container.size() > fcount) {
core.select_cards.clear();
for(auto cit = targets->container.begin(); cit != targets->container.end(); ++cit)
core.select_cards.push_back(*cit);
......
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