Commit e1e9af3e authored by mercury233's avatar mercury233
parents 7a84ffdd aba66bc2
...@@ -3611,7 +3611,7 @@ int32 card::is_capable_be_battle_target(card* pcard) { ...@@ -3611,7 +3611,7 @@ int32 card::is_capable_be_battle_target(card* pcard) {
return FALSE; return FALSE;
if(pcard->is_affected_by_effect(EFFECT_CANNOT_SELECT_BATTLE_TARGET, this)) if(pcard->is_affected_by_effect(EFFECT_CANNOT_SELECT_BATTLE_TARGET, this))
return FALSE; return FALSE;
if(is_affected_by_effect(EFFECT_IGNORE_BATTLE_TARGET)) if(is_affected_by_effect(EFFECT_IGNORE_BATTLE_TARGET, pcard))
return FALSE; return FALSE;
return TRUE; return TRUE;
} }
......
...@@ -2333,7 +2333,7 @@ int32 field::get_attack_target(card* pcard, card_vector* v, uint8 chain_attack, ...@@ -2333,7 +2333,7 @@ int32 field::get_attack_target(card* pcard, card_vector* v, uint8 chain_attack,
continue; continue;
if(pcard->announced_cards.findcard(atarget) >= (uint32)peffect->get_value(atarget)) if(pcard->announced_cards.findcard(atarget) >= (uint32)peffect->get_value(atarget))
continue; continue;
if(atype >= 2 && atarget->is_affected_by_effect(EFFECT_IGNORE_BATTLE_TARGET)) if(atype >= 2 && atarget->is_affected_by_effect(EFFECT_IGNORE_BATTLE_TARGET, pcard))
continue; continue;
if(select_target && (atype == 2 || atype == 4)) { if(select_target && (atype == 2 || atype == 4)) {
if(atarget->is_affected_by_effect(EFFECT_CANNOT_BE_BATTLE_TARGET, pcard)) if(atarget->is_affected_by_effect(EFFECT_CANNOT_BE_BATTLE_TARGET, pcard))
...@@ -2351,7 +2351,7 @@ int32 field::get_attack_target(card* pcard, card_vector* v, uint8 chain_attack, ...@@ -2351,7 +2351,7 @@ int32 field::get_attack_target(card* pcard, card_vector* v, uint8 chain_attack,
for(auto& atarget : *pv) { for(auto& atarget : *pv) {
if(!atarget) if(!atarget)
continue; continue;
if(atype >= 2 && atarget->is_affected_by_effect(EFFECT_IGNORE_BATTLE_TARGET)) if(atype >= 2 && atarget->is_affected_by_effect(EFFECT_IGNORE_BATTLE_TARGET, pcard))
continue; continue;
mcount++; mcount++;
if(chain_attack && core.chain_attack_target && atarget != core.chain_attack_target) if(chain_attack && core.chain_attack_target && atarget != core.chain_attack_target)
......
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