<commit_before>from ..utils import *


##
# Hero Powers

# Life Tap
class CS2_056:
	activate = Hit(FRIENDLY_HERO, 2), Draw(CONTROLLER)


##
# Minions

# Blood Imp
class CS2_059:
	events = OWN_TURN_END.on(Buff(FRIENDLY_MINIONS - SELF, "CS2_059o"))


# Dread Infernal
class CS2_064:
	play = Hit(ALL_CHARACTERS - SELF, 1)


# Felguard
class EX1_301:
	play = GainMana(CONTROLLER, -1)


# Void Terror
class EX1_304:
	# TODO
	def play(self):
		if self.adjacent_minions:
			atk = 0
			health = 0
			for minion in self.adjacent_minions:
				atk += minion.atk
				health += minion.health
				minion.destroy()
			self.buff(self, "EX1_304e", atk=atk, max_health=health)


# Succubus
class EX1_306:
	play = Discard(RANDOM(CONTROLLER_HAND))


# Doomguard
class EX1_310:
	play = Discard(RANDOM(CONTROLLER_HAND) * 2)


# Pit Lord
class EX1_313:
	play = Hit(FRIENDLY_HERO, 5)


# Summoning Portal (Virtual Aura)
class EX1_315a:
	cost = lambda self, i: min(i, max(1, i - 2))


# Flame Imp
class EX1_319:
	play = Hit(FRIENDLY_HERO, 3)


## Lord Jaraxxus
#class EX1_323:
#	# TODO
#	def play(self):
#		self.removeFromField()
#		self.controller.summon("EX1_323h")
#		self.controller.summon("EX1_323w")

# INFERNO!
class EX1_tk33:
	activate = Summon(CONTROLLER, "EX1_tk34")


##
# Spells

# Drain Life
class CS2_061:
	play = Hit(TARGET, 2), Heal(FRIENDLY_HERO, 2)


# Hellfire
class CS2_062:<commit_msg>Re-implement Lord Jaraxxus<commit_after>from ..utils import *


##
# Hero Powers

# Life Tap
class CS2_056:
	activate = Hit(FRIENDLY_HERO, 2), Draw(CONTROLLER)


##
# Minions

# Blood Imp
class CS2_059:
	events = OWN_TURN_END.on(Buff(FRIENDLY_MINIONS - SELF, "CS2_059o"))


# Dread Infernal
class CS2_064:
	play = Hit(ALL_CHARACTERS - SELF, 1)


# Felguard
class EX1_301:
	play = GainMana(CONTROLLER, -1)


# Void Terror
class EX1_304:
	# TODO
	def play(self):
		if self.adjacent_minions:
			atk = 0
			health = 0
			for minion in self.adjacent_minions:
				atk += minion.atk
				health += minion.health
				minion.destroy()
			self.buff(self, "EX1_304e", atk=atk, max_health=health)


# Succubus
class EX1_306:
	play = Discard(RANDOM(CONTROLLER_HAND))


# Doomguard
class EX1_310:
	play = Discard(RANDOM(CONTROLLER_HAND) * 2)


# Pit Lord
class EX1_313:
	play = Hit(FRIENDLY_HERO, 5)


# Summoning Portal (Virtual Aura)
class EX1_315a:
	cost = lambda self, i: min(i, max(1, i - 2))


# Flame Imp
class EX1_319:
	play = Hit(FRIENDLY_HERO, 3)


# <NAME>
class EX1_323:
	# TODO
	def play(self):
		self.removeFromField()
		self.controller.summon("EX1_323h")
		self.controller.summon("EX1_323w")

# INFERNO!
class EX1_tk33:
	activate = Summon(CONTROLLER, "EX1_tk34")


##
# Spells

# Drain Life
class CS2_061:
	play = Hit(TARGET, 2), Heal(FRIENDLY_HERO, 2)


# Hellfire
class CS2_062:
{'fraction_non_alphanumeric': 0.12241941325606664, 'fraction_numerical': 0.06229626946758421, 'mean_word_length': 4.162616822429906, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5305325', 'n_tokens_mistral': 1378, 'n_tokens_neox': 1221, 'n_words': 260}