code: def can_pay_cost(self, card):
  		
  		if self.spells_cost_health and card.type == CardType.SPELL:
  			return self.hero.health > card.cost
  		return self.mana >= card.cost
docs: Returns whether the player can pay the resource cost of a card.