<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def can_pay_cost(self, card):
 		""" 		Returns whether the player can pay the resource cost of a card. 		"""

		if self.spells_cost_health and card.type == CardType.SPELL:
			return self.hero.health > card.cost
		return self.mana >= card.cost