forked from pcyin/NL2code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhs.test_data.geneated_code
More file actions
66 lines (66 loc) · 24.9 KB
/
hs.test_data.geneated_code
File metadata and controls
66 lines (66 loc) · 24.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
class Archmage(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Archmage', 6, CHARACTER_CLASS.ALL, CARD_RARITY.COMMON#NEWLINE# )#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(4, 7, spell_damage=1)
class BootyBayBodyguardBodyguard(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Booty Bay Bodyguard', 5, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.COMMON)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(5, 4, taunt=True)
class DarkscaleHealer(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Darkscale Healer', 4, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.COMMON, battlecry=Battlecry(Heal(2),#NEWLINE# CharacterSelector(players=BothPlayer(), picker=UserPicker())))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(4, 5)
class FieryWarAxe(WeaponCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Fiery War Axe', 3, CHARACTER_CLASS.WARRIOR,#NEWLINE# CARD_RARITY.FREE)#NEWLINE##NEWLINE# def create_weapon(self, player):#NEWLINE# return Weapon(3, 2)
class FrostwolfWarlord(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Frostwolf Warlord', 5, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.COMMON, battlecry=Battlecry(Give(Buff(ChangeAttack(#NEWLINE# Count(MinionSelector(MinionHason(), BothPlayer()))))), Buff(#NEWLINE# ChangeHealth(Count(MinionSelector(MinionHason(), BothPlayer()))))))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(4, 4)
class Hellfire(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Hellfire', 4, CHARACTER_CLASS.WARLOCK,#NEWLINE# CARD_RARITY.FREE, target_func=hearthbreaker.targeting.#NEWLINE# find_spell_target)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# self.target.damage(player.effective_spell_damage(3), self)
class Innervate(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Innervate', 0, CHARACTER_CLASS.DRUID, CARD_RARITY#NEWLINE# .FREE)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# self.target.add_buff(BuffUntil(ChangeHealth(2), WeaponSelector(),#NEWLINE# TurnEnded()))#NEWLINE# player.draw()
class MagmaRager(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Magma Rager', 5, CHARACTER_CLASS.ALL, CARD_RARITY#NEWLINE# .FREE)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(5, 1)
class MortalCoil(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Mortal Coil', 1, CHARACTER_CLASS.WARLOCK,#NEWLINE# CARD_RARITY.COMMON, target_func=hearthbreaker.targeting.#NEWLINE# find_minion_spell_target)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# self.target.silence()
class Polymorph(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Polymorph', 4, CHARACTER_CLASS.MAGE, CARD_RARITY.#NEWLINE# FREE, target_func=hearthbreaker.targeting.find_minion_spell_target)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# self.target.check_delayed()
class SearingTotem(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Searing Totem', 1, CHARACTER_CLASS.SHAMAN,#NEWLINE# CARD_RARITY.FREE, False, MINION_TYPE.TOTEM)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(1, 1)
class SilverbackPatriarch(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Silverback Patriarch', 3, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.COMMON, minion_type=MINION_TYPE.BEAST)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(1, 4, taunt=True)
class StormwindKnight(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Stormwind Knight', 4, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.COMMON)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(2, 5, charge=True)
class VoodooDoctor(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Voodoo Doctor', 1, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.FREE, battlecry=Battlecry(Heal(2),#NEWLINE# CharacterSelector(players=BothPlayer(), picker=UserPicker())))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(2, 1)
class WrathOfAirTotem(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Wrath of Air Totem', 1, CHARACTER_CLASS.SHAMAN,#NEWLINE# CARD_RARITY.FREE, False, MINION_TYPE.TOTEM)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(0, 2, spell_damage=1)
class AstralCommunionCommunion(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Astral Communion', 4, CHARACTER_CLASS.DRUID,#NEWLINE# CARD_RARITY.EPIC)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# if player.max_mana < 10:#NEWLINE# player.max_mana += 1
class Annoy-o-Tron(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Annoy-o-Tron', 2, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.COMMON, minion_type=MINION_TYPE.MECH)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(1, 2, divine_shield=True, taunt=False)
class BurlyRockjawTrogg(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Burly Rockjaw Trogg', 4, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.COMMON)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(3, 5, effects=[Effect(SpellCast(player=EnemyPlayer()),#NEWLINE# ActionTag(Give(ChangeAttack(1)), SelfSelector()))])
class CogmasterWrenchWrench(WeaponCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__("Gallywix's Wrench Wrench", 3, CHARACTER_CLASS.#NEWLINE# ROGUE, CARD_RARITY.EPIC)#NEWLINE##NEWLINE# def create_weapon(self, player):#NEWLINE# return Weapon(1, 3, auras=[Aura(ChangeAttack(2), SelfSelector())])
class EchoofMedivh(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Echo of Medivh', 4, CHARACTER_CLASS.MAGE,#NEWLINE# CARD_RARITY.EPIC)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# return super().can_use(player, game) and len(player.minions) < 7#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# for target in copy.copy(player.minions):#NEWLINE# minion_card.add_buff(Buff(ManaChange(-3)))
class FloatingWatcher(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Floating Watcher', 5, CHARACTER_CLASS.WARLOCK,#NEWLINE# CARD_RARITY.COMMON, minion_type=MINION_TYPE.DEMON)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(4, 4, effects=[Effect(TurnEnded(), ActionTag(Give(#NEWLINE# ChangeAttack(2)), SelfSelector()))])
class GnomishExperimenter(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Gnomish Experimenter', 3, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.RARE, battlecry=Battlecry(Draw(), PlayerSelector()))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(3, 2)
class IronJuggernaut(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Iron Juggernaut', 5, CHARACTER_CLASS.WARRIOR,#NEWLINE# CARD_RARITY.LEGENDARY, minion_type=MINION_TYPE.MECH, battlecry=#NEWLINE# Battlecry(Transform(10Bot(), 2), PlayerSelector()))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(6, 5)
class MadderBomber(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Madder Bomber', 4, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.RARE, battlecry=Battlecry(Damage(1),#NEWLINE# CharacterSelector(players=BothPlayer(), picker=RandomPicker(3))))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(5, 4)
class Mini-Mage(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Mini-Mage', 4, CHARACTER_CLASS.ALL, CARD_RARITY.EPIC)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(4, 1, stealth=True, effects=[Effect(DidDamage(),#NEWLINE# ActionTag(Give(Frozen()), TargetSelector()))])
class PilotedSkyGolem(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Piloted Sky Golem', 6, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.EPIC, minion_type=MINION_TYPE.MECH)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(6, 6, deathrattle=Deathrattle(Summon(CardQuery(#NEWLINE# conditions=[ManaCost(2), IsMinion()])), PlayerSelector(#NEWLINE# EnemyPlayer())))
class ScarletPurifier(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Scarlet Purifier', 4, CHARACTER_CLASS.PALADIN,#NEWLINE# CARD_RARITY.RARE, battlecry=Battlecry(Damage(2), MinionSelector#NEWLINE# (players=BothPlayer(), picker=UserPicker())))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(4, 3)
class SiltfinSpiritwalker(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Siltfin Spiritwalker', 4, CHARACTER_CLASS.SHAMAN,#NEWLINE# CARD_RARITY.EPIC, minion_type=MINION_TYPE.TOTEM)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(2, 5, effects=[Effect(MinionPlaced(IsType(MINION_TYPE#NEWLINE# .TOTEM)), ActionTag(Draw(), PlayerSelector()))])
class TinkertownTechnician(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Tinkertown Technician', 3, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.COMMON, battlecry=Battlecry(Steal(), MinionSelector#NEWLINE# (IsType(MINION_TYPE.MECH), picker=UserPicker()), None(#NEWLINE# GreaterThan(Count(MinionSelector(IsType(MINION_TYPE.MECH))),#NEWLINE# value=0))))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(3, 3)
class Vol'jin(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__("Vol'jin", 6, CHARACTER_CLASS.PRIEST, CARD_RARITY.#NEWLINE# LEGENDARY, battlecry=Battlecry(SwapStats('health', 'attack',#NEWLINE# False), MinionSelector(players=BothPlayer(), picker=UserPicker())))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(6, 2)
class 'sBite(WeaponCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__("Gallywix's Bite", 4, CHARACTER_CLASS.WARRIOR,#NEWLINE# CARD_RARITY.COMMON)#NEWLINE##NEWLINE# def create_weapon(self, player):#NEWLINE# return Weapon(4, 2, deathrattle=Deathrattle(Damage(1),#NEWLINE# CharacterSelector(players=BothPlayer())), taunt=True)
class Maexxna(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Maexxna', 6, CHARACTER_CLASS.ALL, CARD_RARITY.#NEWLINE# LEGENDARY, minion_type=MINION_TYPE.BEAST)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(2, 8, effects=[Effect(DidDamage(), ActionTag(Kill(),#NEWLINE# TargetSelector(IsMinion())))])
class SludgeBelcher(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Sludge Belcher', 5, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.RARE)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(3, 5, divine_shield=True, taunt=False)
class Voidcaller(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Voidcaller', 4, CHARACTER_CLASS.WARLOCK,#NEWLINE# CARD_RARITY.COMMON, minion_type=MINION_TYPE.DEMON, battlecry=#NEWLINE# Battlecry(AddCard(CardQuery(source=CARD_SOURCE.LIST,#NEWLINE# source_list=spare_part_list), 2), PlayerSelector()))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(3, 4, deathrattle=Deathrattle(AddCard(CardQuery(#NEWLINE# source=CARD_SOURCE.LIST, source_list=spare_part_list)),#NEWLINE# PlayerSelector()))
class Alexstrasza(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Alexstrasza', 9, CHARACTER_CLASS.ALL, CARD_RARITY#NEWLINE# .LEGENDARY, minion_type=MINION_TYPE.DRAGON, battlecry=Battlecry#NEWLINE# (Replace(15Bot(), 2), PlayerSelector()))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(8, 8)
class ArcaneGolem(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Arcane Golem', 3, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.RARE, battlecry=Battlecry(AddCard(ManaCrystal(), 2),#NEWLINE# PlayerSelector()))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(4, 2, taunt=True)
class BaineBloodhoof(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Baine Bloodhoof', 4, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.LEGENDARY)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(4, 5, deathrattle=Deathrattle(Summon(Thaddius()),#NEWLINE# PlayerSelector(), InGraveyard(Feugen())))
class BladeFlurry(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Blade Flurry', 2, CHARACTER_CLASS.ROGUE,#NEWLINE# CARD_RARITY.RARE)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# targets = copy.copy(game.other_player.minions)#NEWLINE# targets.append(game.other_player.hero)
class Brawl(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Brawl', 5, CHARACTER_CLASS.WARRIOR, CARD_RARITY.EPIC)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# targets = copy.copy(game.other_player.minions)#NEWLINE# targets.extend(player.minions)#NEWLINE# for minion in targets:#NEWLINE# minion.die(self)
class Conceal(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Conceal', 1, CHARACTER_CLASS.ROGUE, CARD_RARITY.#NEWLINE# COMMON, target_func=hearthbreaker.targeting.#NEWLINE# find_minion_spell_target)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# self.target.add_buff(BuffUntil(Stealth(), TurnStarted()))
class Defender(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Defender', 1, CHARACTER_CLASS.PALADIN,#NEWLINE# CARD_RARITY.COMMON, False)#NEWLINE##NEWLINE# def create_minion(self, p):#NEWLINE# return Minion(2, 1)
class Doomguard(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Doomguard', 5, CHARACTER_CLASS.WARLOCK,#NEWLINE# CARD_RARITY.RARE, minion_type=MINION_TYPE.DEMON, battlecry=#NEWLINE# Battlecry(Equip(Whelp(), True), PlayerSelector(players=#NEWLINE# BothPlayer())))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(5, 7, charge=True)
class EarthElemental(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Earth Elemental', 5, CHARACTER_CLASS.SHAMAN,#NEWLINE# CARD_RARITY.EPIC, overload=2)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(7, 8, taunt=True)
class ExplosiveTrap(SecretCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Explosive Trap', 2, CHARACTER_CLASS.HUNTER,#NEWLINE# CARD_RARITY.COMMON)#NEWLINE##NEWLINE# def activate(self, player):#NEWLINE# player.bind('minion_played', self._reveal)#NEWLINE##NEWLINE# def deactivate(self, player):#NEWLINE# player.game.current_player.unbind('minion_played', self._reveal)#NEWLINE##NEWLINE# def deactivate(self, player):#NEWLINE# player.game.current_player.unbind('minion_played Damage', self._reveal)
class FlameOfAzzinoth(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Flame of Azzinoth', 1, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.COMMON, minion_type=MINION_TYPE.DRAGON)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(2, 1)
class Gnoll(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Gnoll', 2, CHARACTER_CLASS.ALL, CARD_RARITY.COMMON)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(2, 2, taunt=True)
class HolyWrath(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Holy Wrath', 5, CHARACTER_CLASS.PALADIN,#NEWLINE# CARD_RARITY.RARE)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# for minion in player.minions:#NEWLINE# minion.add_buff(Buff(Frozen()))
class Infernal(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Infernal', 6, CHARACTER_CLASS.WARLOCK,#NEWLINE# CARD_RARITY.RARE, False, minion_type=MINION_TYPE.DEMON)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(6, 6)
class KirinTorMage(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Kirin Tor Mage', 4, CHARACTER_CLASS.MAGE,#NEWLINE# CARD_RARITY.RARE, battlecry=Battlecry(Give([Buff(ChangeAttack(2#NEWLINE# )), Buff(ChangeHealth(2))]), PlayerSelector()))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(4, 3)
class Lightwarden(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Lightwarden', 1, CHARACTER_CLASS.ALL, CARD_RARITY#NEWLINE# .RARE)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(1, 2, effects=[Effect(CharacterHealed(player=#NEWLINE# BothPlayer()), ActionTag(Give(ChangeAttack(1)), SelfSelector()))])
class ManaWraith(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Mana Wraith', 2, CHARACTER_CLASS.ALL, CARD_RARITY#NEWLINE# .RARE)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(2, 2, auras=[Aura(ManaChange(-1), CardSelector(#NEWLINE# condition=IsSpell()))])
class Misdirection(SecretCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Misdirection', 2, CHARACTER_CLASS.HUNTER,#NEWLINE# CARD_RARITY.RARE)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# super().reveal()#NEWLINE# player.hero.change_temp_attack(4)
class NobleSacrifice(SecretCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Noble Sacrifice', 1, CHARACTER_CLASS.PALADIN,#NEWLINE# CARD_RARITY.COMMON)#NEWLINE##NEWLINE# def activate(self, player):#NEWLINE# player.game.current_player.bind('character_attack', self._reveal)#NEWLINE##NEWLINE# def deactivate(self, player):#NEWLINE# player.game.current_player.unbind('character_attack', self._reveal)#NEWLINE##NEWLINE# def deactivate(self, player):#NEWLINE# player.game.current_player.unbind('character_attack', self._reveal)
class PowerOfthe(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Power of the Wild', 2, CHARACTER_CLASS.DRUID,#NEWLINE# CARD_RARITY.COMMON, target_func=hearthbreaker.targeting.#NEWLINE# find_minion_spell_target)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# self.target.add_buff(Buff(ChangeAttack(1)))#NEWLINE# self.target.add_buff(Buff(ChangeHealth(1)))
class Redemption(SecretCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Redemption', 1, CHARACTER_CLASS.PALADIN,#NEWLINE# CARD_RARITY.COMMON)#NEWLINE##NEWLINE# def use(self, player, target):#NEWLINE# super().use(player, game)
class ShadowMadness(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Shadow Madness', 4, CHARACTER_CLASS.PRIEST,#NEWLINE# CARD_RARITY.RARE)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# from hearthbreaker.cards.minions.druid import 3Treant#NEWLINE# super().use(player, game)#NEWLINE##NEWLINE# def _reveal(self, player, game):#NEWLINE# return super().can_use(player, game) and len(player.minions) < 7
class SiphonSoul(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Siphon Soul', 6, CHARACTER_CLASS.WARLOCK,#NEWLINE# CARD_RARITY.RARE, target_func=hearthbreaker.targeting.#NEWLINE# find_minion_spell_target, filter_func=lambda target: target.#NEWLINE# calculate_attack() >= 3 and target.spell_targetable())#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# self.target.die(self)
class Spellbender(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Spellbender', 0, CHARACTER_CLASS.MAGE,#NEWLINE# CARD_RARITY.EPIC, False)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(1, 3)
class SummoningPortal(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Summoning Portal', 4, CHARACTER_CLASS.WARLOCK,#NEWLINE# CARD_RARITY.COMMON)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(0, 4, auras=[Aura(ManaChange(-1), CardSelector(#NEWLINE# condition=IsSpell()))])
class ThrallmarFarseer(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Thrallmar Farseer', 3, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.COMMON)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(2, 3, windfury=True)
class Upgrade!!(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Upgrade !', 1, CHARACTER_CLASS.WARRIOR,#NEWLINE# CARD_RARITY.RARE)#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)
class Wisp(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Wisp', 0, CHARACTER_CLASS.ALL, CARD_RARITY.COMMON,#NEWLINE# False, MINION_TYPE.COMMON)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(1, 1)
class BlackWhelp(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Black Whelp', 1, CHARACTER_CLASS.ALL, CARD_RARITY#NEWLINE# .COMMON, minion_type=MINION_TYPE.DRAGON)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(2, 1)
class DragonkinSorcerer(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Dragonkin Sorcerer', 4, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.COMMON, minion_type=MINION_TYPE.DRAGON)#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(3, 5, effects=[Effect(CardPlayed(), ActionTag(Give([#NEWLINE# Buff(ChangeAttack(1)), Buff(ChangeHealth(1))]), SelfSelector()))])
class HungryDragon(MinionCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Hungry Dragon', 6, CHARACTER_CLASS.ALL,#NEWLINE# CARD_RARITY.COMMON, minion_type=MINION_TYPE.DRAGON, battlecry=#NEWLINE# Battlecry(Give(HungryDragon()), PlayerSelector()))#NEWLINE##NEWLINE# def create_minion(self, player):#NEWLINE# return Minion(5, 6)
class SolemnVigilVigil(SpellCard):#NEWLINE##NEWLINE# def __init__(self):#NEWLINE# super().__init__('Solemn Vigil', 5, CHARACTER_CLASS.PALADIN,#NEWLINE# CARD_RARITY.COMMON, target_func=hearthbreaker.targeting.#NEWLINE# find_spell_target, buffs=[Buff(ManaChange(Count(#NEWLINE# DeadMinionSelector(players=BothPlayer())), -1))])#NEWLINE##NEWLINE# def use(self, player, game):#NEWLINE# super().use(player, game)#NEWLINE# self.target.damage(player.effective_spell_damage(1), self)