getScoreForDamageFromCardWithIntentToCard = function (card, intent, targetCard) {
  let score = 0;
  if (targetCard != null) {
    const amount = intent.amount || 0;
    if (!card.getIsSameTeamAs(targetCard)) {
      // add score for damaging enemy card
      score += ScoreForUnitDamage(targetCard, amount);
    } else {
      // subtract score for damaging friendly card
      // burning own units isn't as significant and burning enemy units
      score -= ScoreForUnitDamage(targetCard, amount) * 0.75;
    }
  }
  return score;
}
Returns the score for the damage dealt to a target card by a card.
@param {Card} card
@param {Object} intent
@param {Card} targetCard
@returns {Number}
@static
@public