fix Influence assist effect

This commit is contained in:
Martin Michelsen
2026-02-22 07:36:11 -08:00
parent d1c1228308
commit 08dff98948
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -990,7 +990,7 @@ void Card::compute_action_chain_results(bool apply_action_conditions, bool ignor
break;
case AssistEffect::INFLUENCE:
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);
}
break;
+2 -2
View File
@@ -528,9 +528,9 @@ size_t PlayerState::count_set_cards() const {
return ret;
}
size_t PlayerState::count_set_refs() const {
size_t PlayerState::count_hand_refs() const {
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) {
ret++;
}
+1 -1
View File
@@ -56,7 +56,7 @@ public:
void compute_total_set_cards_cost();
size_t count_set_cards_for_env_stats_nte() 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_attack_action_cards_from_hand();
void discard_all_item_and_creature_cards_from_hand();