fix Influence assist effect
This commit is contained in:
@@ -990,7 +990,7 @@ void Card::compute_action_chain_results(bool apply_action_conditions, bool ignor
|
|||||||
break;
|
break;
|
||||||
case AssistEffect::INFLUENCE:
|
case AssistEffect::INFLUENCE:
|
||||||
if (!is_nte && this->card_type_is_sc_or_creature()) {
|
if (!is_nte && this->card_type_is_sc_or_creature()) {
|
||||||
int16_t count = ps->count_set_refs();
|
int16_t count = ps->count_hand_refs();
|
||||||
this->action_chain.chain.ap_effect_bonus += (count >> 1);
|
this->action_chain.chain.ap_effect_bonus += (count >> 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -528,9 +528,9 @@ size_t PlayerState::count_set_cards() const {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t PlayerState::count_set_refs() const {
|
size_t PlayerState::count_hand_refs() const {
|
||||||
size_t ret = 0;
|
size_t ret = 0;
|
||||||
for (size_t set_index = 0; set_index < 8; set_index++) {
|
for (size_t set_index = 8; set_index < 16; set_index++) {
|
||||||
if (this->card_refs[set_index] != 0xFFFF) {
|
if (this->card_refs[set_index] != 0xFFFF) {
|
||||||
ret++;
|
ret++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public:
|
|||||||
void compute_total_set_cards_cost();
|
void compute_total_set_cards_cost();
|
||||||
size_t count_set_cards_for_env_stats_nte() const;
|
size_t count_set_cards_for_env_stats_nte() const;
|
||||||
size_t count_set_cards() const;
|
size_t count_set_cards() const;
|
||||||
size_t count_set_refs() const;
|
size_t count_hand_refs() const;
|
||||||
void discard_all_assist_cards_from_hand();
|
void discard_all_assist_cards_from_hand();
|
||||||
void discard_all_attack_action_cards_from_hand();
|
void discard_all_attack_action_cards_from_hand();
|
||||||
void discard_all_item_and_creature_cards_from_hand();
|
void discard_all_item_and_creature_cards_from_hand();
|
||||||
|
|||||||
Reference in New Issue
Block a user