void deal_shadow_card_to_players_engaged_enemies(LOTRPlayer player) { disallow_actions(); foreach (var engaged_enemy in player.get_engaged_enemies()) { if (!engaged_enemy.has_shadow_cards()) { if (enemy_deck.Count > 0) { EnemyCard shadow_card = enemy_deck[0]; enemy_deck.RemoveAt(0); shadow_card.set_face_down(); engaged_enemy.add_shadow_card(shadow_card); //todo: highest engagement first //TODO: maybe throw an event for this guy but for now just do this here.... if (engaged_enemy.get_name() == EnemyCard.DOL_GULDUR_BEASTMASTER().get_name()) { EnemyCard shadow_card2 = enemy_deck[0]; enemy_deck.RemoveAt(0); shadow_card2.set_face_down(); engaged_enemy.add_shadow_card(shadow_card2); //todo: highest engagement first } } } } allow_actions_to_be_played(resolve_enemy_attacks); }
public List <EnemyCard> get_engaged_enemies(LOTRPlayer player) { return(player.get_engaged_enemies()); }