old_contents: import random
  from fireplace.targeting import *
  
  
  # helpers
  drawCard = lambda self: self.owner.draw()
  
  def discard(count):
  	def _discard(self):
  		# discard at most x card
  		discard = random.sample(self.owner.hand, min(count, len(self.owner.hand)))
  		for card in discard:
  			card.discard()
  	return _discard
  
  # Healing Totem
  class NEW1_009:
  	def endTurn(self):
  		targets = self.getTargets(TARGET_FRIENDLY_MINIONS)
  		for target in targets:
  			if self.game.currentPlayer is self.owner:
  				target.heal(1)
  
  
  # Novice Engineer
  class EX1_015:
  	activate = drawCard
  
  # Succubus
  class EX1_306:
  	activate = discard(1)
  
  # Murloc Tidehunter
  class EX1_506:
  	def activate(self):
  		self.owner.summon("EX1_506a")
  
  # Nightblade
  class EX1_593:
  	targeting = TARGET_ENEMY_HERO
  	def activate(self, target):
  		target.damage(3)
  
  # Dalaran Mage
  class EX1_582:
  	spelldamage = 1
  
  # Kobold Geomancer
  class CS2_142:
  	spellpower = 1
  
  # Gnomish Inventor
  class CS2_147:
  	activate = drawCard
  
  # Archmage
  class CS2_155:
  	spelldamage = 1
  
  # Elven Archer
  class CS2_189:
  	targeting = TARGET_ANY_CHARACTER
  	def activate(self, target):
  		target.damage(1)
  
  # Ogre Magi
  class CS2_197:
  	spellpower = 1
  
new_contents: import random
  from fireplace.targeting import *
  
  
  # helpers
  drawCard = lambda self: self.owner.draw()
  
  
  def discard(count):
  	def _discard(self):
  		# discard at most x card
  		discard = random.sample(self.owner.hand, min(count, len(self.owner.hand)))
  		for card in discard:
  			card.discard()
  	return _discard
  
  
  def healTarget(amount):
  	def _healTarget(self, target):
  		target.heal(amount)
  	return _healTarget
  
  
  # Healing Totem
  class NEW1_009:
  	def endTurn(self):
  		targets = self.getTargets(TARGET_FRIENDLY_MINIONS)
  		for target in targets:
  			if self.game.currentPlayer is self.owner:
  				target.heal(1)
  
  
  # Voodoo Doctor
  class EX1_011:
  	targeting = TARGET_ANY_CHARACTER
  	activate = healTarget(2)
  
  # Novice Engineer
  class EX1_015:
  	activate = drawCard
  
  # Succubus
  class EX1_306:
  	activate = discard(1)
  
  # Murloc Tidehunter
  class EX1_506:
  	def activate(self):
  		self.owner.summon("EX1_506a")
  
  # Priestess of Elune
  class EX1_583:
  	targeting = TARGET_FRIENDLY_HERO
  	activate = healTarget(4)
  
  # Nightblade
  class EX1_593:
  	targeting = TARGET_ENEMY_HERO
  	def activate(self, target):
  		target.damage(3)
  
  # Dalaran Mage
  class EX1_582:
  	spelldamage = 1
  
  # Guardian of Kings
  class CS2_088:
  	targeting = TARGET_FRIENDLY_HERO
  	activate = healTarget(6)
  
  # Earthen Ring Farseer
  class CS2_117:
  	targeting = TARGET_ANY_CHARACTER
  	activate = healTarget(3)
  
  # Kobold Geomancer
  class CS2_142:
  	spellpower = 1
  
  # Gnomish Inventor
  class CS2_147:
  	activate = drawCard
  
  # Archmage
  class CS2_155:
  	spelldamage = 1
  
  # Elven Archer
  class CS2_189:
  	targeting = TARGET_ANY_CHARACTER
  	def activate(self, target):
  		target.damage(1)
  
  # Ogre Magi
  class CS2_197:
  	spellpower = 1
  
subject: Implement healing battlecry cards