getScoreForDispelFromCardWithIntentToCard = function (card, intent, targetCard) {
  let score = 0;
  if (targetCard != null) {
    // console.log(card, intent, targetCard);
    if (!card.getIsSameTeamAs(targetCard)) {
      // add score for dispeling enemy card
      score += ScoreForUnitDispel(targetCard);
    } else {
      // subtract score for dispeling friendly card
      score -= ScoreForUnitDispel(targetCard);
    }
  }
  return score;
}
Returns the score for dispelling a target card by a card.
@param {Card} card
@param {Object} intent
@param {Card} targetCard
@returns {Number}
@static
@public