getScoreForApplyModifiersFromCardWithIntentToCard = function (card, intent, targetCard) {
  let score = 0;
  if (targetCard != null) {
    const amount = intent.amount || 1;
    const { modifiers } = intent;
    if (card.getIsSameTeamAs(targetCard)) {
      // add score for applying modifiers to friendly cards
      score += ScoreForApplyModifiers(card, targetCard, amount, modifiers);
    } else {
      // subtract score for applying modifiers to enemy cards
      score -= ScoreForApplyModifiers(card, targetCard, amount, modifiers);
    }
  }
  return score;
}
Returns the
@param {Card} card
@param {Object} intent
@param {Card} targetCard
@returns {Number}
@static
@public