Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion third_party/hearthstone/train_hs.out
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class Ashbringer(WeaponCard):§ def __init__(self):§ super().__init__
class AuchenaiSoulpriest(MinionCard):§ def __init__(self):§ super().__init__("Auchenai Soulpriest", 4, CHARACTER_CLASS.PRIEST, CARD_RARITY.RARE)§§ def create_minion(self, player):§ return Minion(3, 5, auras=[Aura(HealAsDamage(), PlayerSelector())])§
class AvengingWrath(SpellCard):§ def __init__(self):§ super().__init__("Avenging Wrath", 6, CHARACTER_CLASS.PALADIN, CARD_RARITY.EPIC)§§ def use(self, player, game):§ super().use(player, game)§ for i in range(0, player.effective_spell_damage(8)):§ targets = copy.copy(game.other_player.minions)§ targets.append(game.other_player.hero)§ target = game.random_choice(targets)§ target.damage(1, self)§
class AzureDrake(MinionCard):§ def __init__(self):§ super().__init__("Azure Drake", 5, CHARACTER_CLASS.ALL, CARD_RARITY.RARE, minion_type=MINION_TYPE.DRAGON, battlecry=Battlecry(Draw(), PlayerSelector()))§§ def create_minion(self, player):§ return Minion(4, 4, spell_damage=1)§
class BaneOfDoom(SpellCard):§ def __init__(self):§ super().__init__("Bane of Doom", 5, CHARACTER_CLASS.WARLOCK, CARD_RARITY.EPIC, target_func=hearthbreaker.targeting.find_spell_target)§§ def use(self, player, game):§ super().use(player, game)§ if self.target.health <= player.effective_spell_damage(2) and \ (isinstance(self.target, Minion) and not self.target.divine_shield):§ self.target.damage(player.effective_spell_damage(2), self)§ demons = CardQuery(conditions=[IsType(MINION_TYPE.DEMON)])§ demons.get_card(player, player, self).summon(player, game, len(player.minions))§ else:§ self.target.damage(player.effective_spell_damage(2), self)§
class BaneOfDoom(SpellCard):§ def __init__(self):§ super().__init__("Bane of Doom", 5, CHARACTER_CLASS.WARLOCK, CARD_RARITY.EPIC, target_func=hearthbreaker.targeting.find_spell_target)§§ def use(self, player, game):§ super().use(player, game)§ if self.target.health <= player.effective_spell_damage(2) and (isinstance(self.target, Minion) and not self.target.divine_shield):§ self.target.damage(player.effective_spell_damage(2), self)§ demons = CardQuery(conditions=[IsType(MINION_TYPE.DEMON)])§ demons.get_card(player, player, self).summon(player, game, len(player.minions))§ else:§ self.target.damage(player.effective_spell_damage(2), self)§
class BaronGeddon(MinionCard):§ def __init__(self):§ super().__init__("Baron Geddon", 7, CHARACTER_CLASS.ALL, CARD_RARITY.LEGENDARY)§§ def create_minion(self, player):§ return Minion(7, 5, effects=[Effect(TurnEnded(), ActionTag(Damage(2), CharacterSelector(players=BothPlayer())))])§
class BattleAxe(WeaponCard):§ def __init__(self):§ super().__init__("Battle Axe", 1, CHARACTER_CLASS.WARRIOR, CARD_RARITY.COMMON, False)§§ def create_weapon(self, player):§ return Weapon(2, 2)§
class BattleRage(SpellCard):§ def __init__(self):§ super().__init__("Battle Rage", 2, CHARACTER_CLASS.WARRIOR, CARD_RARITY.COMMON)§§ def use(self, player, game):§ def damaged_character(character):§ return character.health < character.calculate_max_health()§§ super().use(player, game)§§ characters = copy.copy(player.minions)§ characters.append(player.hero)§§ characters = [character for character in characters if damaged_character(character)]§§ for i in range(0, len(characters)):§ player.draw()§
Expand Down