def __init_weapon__(self):
            init_dict = {
                'name': card_def['name'],
                'mana': card_def['mana'],
                'rarity': CARD_RARITY.from_str(card_def['rarity'])
            }
            if 'character_class' in card_def:
                init_dict['character_class'] = CHARACTER_CLASS.from_str(card_def['character_class'])

            if 'battlecry' in card_def:
                init_dict['battlecry'] = Battlecry.from_json(**card_def['battlecry'])

            if 'combo' in card_def:
                init_dict['combo'] = Battlecry.from_json(**card_def['combo'])

            if 'overload' in card_def:
                init_dict['overload'] = card_def['overload']

            if 'buffs' in card_def:
                init_dict['buffs'] = [Buff.from_json(**buff) for buff in card_def['buffs']]
            if 'auras' in card_def:
                init_dict['auras'] = [Aura.from_json(**aura) for aura in card_def['auras']]
            if 'effects' in card_def:
                init_dict['effects'] = [Effect.from_json(**effect) for effect in card_def['effects']]

            WeaponCard.__init__(self, **init_dict)
        def __init__(self):
            init_dict = {
                'name': card_def['name'],
                'mana': card_def['mana'],
                'rarity': CARD_RARITY.from_str(card_def['rarity'])
            }
            if 'character_class' in card_def:
                init_dict['character_class'] = CHARACTER_CLASS.from_str(card_def['character_class'])

            if 'minion_type' in card_def:
                init_dict['minion_type'] = MINION_TYPE.from_str(card_def['minion_type'])

            if 'battlecry' in card_def:
                init_dict['battlecry'] = Battlecry.from_json(**card_def['battlecry'])

            if 'choices' in card_def:
                init_dict['choices'] = [Choice.from_json(**choice) for choice in card_def['choices']]

            if 'combo' in card_def:
                init_dict['combo'] = Battlecry.from_json(**card_def['combo'])

            if 'overload' in card_def:
                init_dict['overload'] = card_def['overload']

            MinionCard.__init__(self, **init_dict)
        def __init__(self):
            init_dict = {
                'name': card_def['name'],
                'mana': card_def['mana'],
                'rarity': CARD_RARITY.from_str(card_def['rarity'])
            }
            if 'character_class' in card_def:
                init_dict['character_class'] = CHARACTER_CLASS.from_str(
                    card_def['character_class'])

            if 'minion_type' in card_def:
                init_dict['minion_type'] = MINION_TYPE.from_str(
                    card_def['minion_type'])

            if 'battlecry' in card_def:
                init_dict['battlecry'] = Battlecry.from_json(
                    **card_def['battlecry'])

            if 'choices' in card_def:
                init_dict['choices'] = [
                    Choice.from_json(**choice)
                    for choice in card_def['choices']
                ]

            if 'combo' in card_def:
                init_dict['combo'] = Battlecry.from_json(**card_def['combo'])

            if 'overload' in card_def:
                init_dict['overload'] = card_def['overload']

            MinionCard.__init__(self, **init_dict)
        def __init__(self):
            init_dict = {
                'name': card_def['name'],
                'mana': card_def['mana'],
                'rarity': CARD_RARITY.from_str(card_def['rarity'])
            }
            if 'character_class' in card_def:
                init_dict['character_class'] = CHARACTER_CLASS.from_str(card_def['character_class'])

            if 'minion_type' in card_def:
                init_dict['minion_type'] = MINION_TYPE.from_str(card_def['minion_type'])

            if 'battlecry' in card_def:
                init_dict['battlecry'] = tuple(Battlecry.from_json(**battlecry) for battlecry in card_def['battlecry'])

            if 'choices' in card_def:
                init_dict['choices'] = [Choice.from_json(**choice) for choice in card_def['choices']]

            if 'combo' in card_def:
                init_dict['combo'] = Battlecry.from_json(**card_def['combo'])

            if 'overload' in card_def:
                init_dict['overload'] = card_def['overload']

            if 'buffs' in card_def:
                init_dict['buffs'] = [Buff.from_json(**buff) for buff in card_def['buffs']]
            if 'auras' in card_def:
                init_dict['auras'] = [Aura.from_json(**aura) for aura in card_def['auras']]
            if 'effects' in card_def:
                init_dict['effects'] = [Effect.from_json(**effect) for effect in card_def['effects']]

            MinionCard.__init__(self, **init_dict)
Exemple #5
0
        def __init_weapon__(self):
            init_dict = {
                'name': card_def['name'],
                'mana': card_def['mana'],
                'rarity': CARD_RARITY.from_str(card_def['rarity'])
            }
            if 'character_class' in card_def:
                init_dict['character_class'] = CHARACTER_CLASS.from_str(
                    card_def['character_class'])

            if 'battlecry' in card_def:
                init_dict['battlecry'] = Battlecry.from_json(
                    **card_def['battlecry'])

            if 'combo' in card_def:
                init_dict['combo'] = Battlecry.from_json(**card_def['combo'])

            if 'overload' in card_def:
                init_dict['overload'] = card_def['overload']

            if 'buffs' in card_def:
                init_dict['buffs'] = [
                    Buff.from_json(**buff) for buff in card_def['buffs']
                ]
            if 'auras' in card_def:
                init_dict['auras'] = [
                    Aura.from_json(**aura) for aura in card_def['auras']
                ]
            if 'effects' in card_def:
                init_dict['effects'] = [
                    Effect.from_json(**effect)
                    for effect in card_def['effects']
                ]

            WeaponCard.__init__(self, **init_dict)
Exemple #6
0
 def __init__(self):
     super().__init__(
         "Perdition's Blade",
         3,
         CHARACTER_CLASS.ROGUE,
         CARD_RARITY.RARE,
         battlecry=Battlecry(Damage(1),
                             CharacterSelector(None, picker=UserPicker())),
         combo=Battlecry(Damage(2),
                         CharacterSelector(None, picker=UserPicker())))
Exemple #7
0
 def __init__(self):
     super().__init__("Lord Jaraxxus",
                      9,
                      CHARACTER_CLASS.WARLOCK,
                      CARD_RARITY.LEGENDARY,
                      minion_type=MINION_TYPE.DEMON,
                      battlecry=(Battlecry(Transform(Jaraxxus()),
                                           HeroSelector()),
                                 Battlecry(Remove(), SelfSelector()),
                                 Battlecry(Equip(BloodFury()),
                                           PlayerSelector())))
Exemple #8
0
 def __init__(self):
     super().__init__("Argent Protector",
                      2,
                      CHARACTER_CLASS.PALADIN,
                      CARD_RARITY.COMMON,
                      battlecry=Battlecry(Give(DivineShield()),
                                          MinionSelector()))
Exemple #9
0
 def __init__(self):
     super().__init__("Shadowbomber",
                      1,
                      CHARACTER_CLASS.PRIEST,
                      CARD_RARITY.EPIC,
                      battlecry=Battlecry(
                          Damage(3), HeroSelector(players=BothPlayer())))
Exemple #10
0
 def __init__(self):
     super().__init__("Succubus",
                      2,
                      CHARACTER_CLASS.WARLOCK,
                      CARD_RARITY.FREE,
                      minion_type=MINION_TYPE.DEMON,
                      battlecry=Battlecry(Discard(), PlayerSelector()))
Exemple #11
0
 def __init__(self):
     super().__init__("Argent Lance",
                      2,
                      CHARACTER_CLASS.PALADIN,
                      CARD_RARITY.RARE,
                      battlecry=Battlecry(Joust(IncreaseDurability()),
                                          SelfSelector()))
Exemple #12
0
 def __init__(self):
     super().__init__("Flame Imp",
                      1,
                      CHARACTER_CLASS.WARLOCK,
                      CARD_RARITY.COMMON,
                      minion_type=MINION_TYPE.DEMON,
                      battlecry=Battlecry(Damage(3), HeroSelector()))
Exemple #13
0
 def __init__(self):
     super().__init__("Arathi Weaponsmith",
                      4,
                      CHARACTER_CLASS.WARRIOR,
                      CARD_RARITY.COMMON,
                      battlecry=Battlecry(Equip(BattleAxe()),
                                          PlayerSelector()))
Exemple #14
0
 def __init__(self):
     super().__init__("Defias Ringleader",
                      2,
                      CHARACTER_CLASS.ROGUE,
                      CARD_RARITY.COMMON,
                      combo=Battlecry(Summon(DefiasBandit()),
                                      PlayerSelector()))
Exemple #15
0
 def __init__(self):
     super().__init__("Dragon Consort", 5, CHARACTER_CLASS.PALADIN, CARD_RARITY.RARE,
                      minion_type=MINION_TYPE.DRAGON,
                      battlecry=Battlecry(GiveAura([AuraUntil(ManaChange(-3),
                                                              CardSelector(condition=IsType(MINION_TYPE.DRAGON)),
                                                              CardPlayed(IsType(MINION_TYPE.DRAGON)), False)]),
                                          PlayerSelector()))
Exemple #16
0
 def __init__(self):
     super().__init__("Pit Lord",
                      4,
                      CHARACTER_CLASS.WARLOCK,
                      CARD_RARITY.EPIC,
                      minion_type=MINION_TYPE.DEMON,
                      battlecry=Battlecry(Damage(5), HeroSelector()))
 def __init__(self):
     from hearthbreaker.cards.minions.neutral import BluegillWarrior, ColdlightOracle, ColdlightSeer, \
         GrimscaleOracle, MurlocRaider, MurlocTidecaller, MurlocTidehunter, MurlocWarleader, OldMurkEye, \
         Puddlestomper
     murloc_list = [
         BluegillWarrior(),
         ColdlightOracle(),
         ColdlightSeer(),
         GrimscaleOracle(),
         MurlocRaider(),
         MurlocTidecaller(),
         MurlocTidehunter(),
         MurlocWarleader(),
         OldMurkEye(),
         Puddlestomper(),
         SiltfinSpiritwalker()
     ]
     super().__init__("Neptulon",
                      7,
                      CHARACTER_CLASS.SHAMAN,
                      CARD_RARITY.LEGENDARY,
                      overload=3,
                      battlecry=Battlecry(
                          AddCard(
                              CardQuery(source=CARD_SOURCE.LIST,
                                        source_list=murloc_list), 4),
                          PlayerSelector()))
Exemple #18
0
 def __init__(self):
     super().__init__("Temple Enforcer",
                      6,
                      CHARACTER_CLASS.PRIEST,
                      CARD_RARITY.COMMON,
                      battlecry=Battlecry(
                          Give(Add(CHARACTER_STATUS.HEALTH, 3)),
                          MinionSelector(picker=UserPicker())))
Exemple #19
0
 def __init__(self):
     super().__init__("Kirin Tor Mage",
                      3,
                      CHARACTER_CLASS.MAGE,
                      CARD_RARITY.RARE,
                      battlecry=Battlecry(
                          Give([ManaAura(100, 0, SecretSelector(), True)]),
                          PlayerSelector()))
Exemple #20
0
 def __init__(self):
     super().__init__("Windspeaker",
                      4,
                      CHARACTER_CLASS.SHAMAN,
                      CARD_RARITY.COMMON,
                      battlecry=Battlecry(
                          Give(Windfury()),
                          MinionSelector(picker=UserPicker())))
Exemple #21
0
 def __init__(self):
     super().__init__("Master of Disguise",
                      4,
                      CHARACTER_CLASS.ROGUE,
                      CARD_RARITY.RARE,
                      battlecry=Battlecry(
                          Give(SetTrue(CHARACTER_STATUS.STEALTH)),
                          MinionSelector(picker=UserPicker())))
Exemple #22
0
 def __init__(self):
     super().__init__("Glaivezooka",
                      2,
                      CHARACTER_CLASS.HUNTER,
                      CARD_RARITY.COMMON,
                      battlecry=Battlecry(
                          Give(ChangeAttack(1)),
                          MinionSelector(None, picker=RandomPicker())))
Exemple #23
0
 def __init__(self):
     super().__init__("Temple Enforcer",
                      6,
                      CHARACTER_CLASS.PRIEST,
                      CARD_RARITY.COMMON,
                      battlecry=Battlecry(
                          Give(ChangeHealth(3)),
                          MinionSelector(picker=UserPicker())))
Exemple #24
0
 def __init__(self):
     super().__init__("Goblin Auto-Barber",
                      2,
                      CHARACTER_CLASS.ROGUE,
                      CARD_RARITY.COMMON,
                      minion_type=MINION_TYPE.MECH,
                      battlecry=Battlecry(IncreaseWeaponAttack(1),
                                          WeaponSelector()))
Exemple #25
0
 def __init__(self):
     super().__init__("Cruel Taskmaster",
                      2,
                      CHARACTER_CLASS.WARRIOR,
                      CARD_RARITY.COMMON,
                      battlecry=Battlecry(
                          [Damage(1), Give(ChangeAttack(2))],
                          MinionSelector(players=BothPlayer())))
Exemple #26
0
 def __init__(self):
     super().__init__("Windspeaker",
                      4,
                      CHARACTER_CLASS.SHAMAN,
                      CARD_RARITY.COMMON,
                      battlecry=Battlecry(
                          Give(SetTrue(CHARACTER_STATUS.WINDFURY)),
                          MinionSelector(picker=UserPicker())))
Exemple #27
0
 def __init__(self):
     super().__init__("Doomguard",
                      5,
                      CHARACTER_CLASS.WARLOCK,
                      CARD_RARITY.RARE,
                      minion_type=MINION_TYPE.DEMON,
                      battlecry=Battlecry(Discard(amount=2),
                                          PlayerSelector()))
Exemple #28
0
        def __init__(self):
            init_dict = {
                'name': card_def['name'],
                'mana': card_def['mana'],
                'rarity': CARD_RARITY.from_str(card_def['rarity'])
            }
            if 'character_class' in card_def:
                init_dict['character_class'] = CHARACTER_CLASS.from_str(
                    card_def['character_class'])

            if 'minion_type' in card_def:
                init_dict['minion_type'] = MINION_TYPE.from_str(
                    card_def['minion_type'])

            if 'battlecry' in card_def:
                init_dict['battlecry'] = tuple(
                    Battlecry.from_json(**battlecry)
                    for battlecry in card_def['battlecry'])

            if 'choices' in card_def:
                init_dict['choices'] = [
                    Choice.from_json(**choice)
                    for choice in card_def['choices']
                ]

            if 'combo' in card_def:
                init_dict['combo'] = Battlecry.from_json(**card_def['combo'])

            if 'overload' in card_def:
                init_dict['overload'] = card_def['overload']

            if 'buffs' in card_def:
                init_dict['buffs'] = [
                    Buff.from_json(**buff) for buff in card_def['buffs']
                ]
            if 'auras' in card_def:
                init_dict['auras'] = [
                    Aura.from_json(**aura) for aura in card_def['auras']
                ]
            if 'effects' in card_def:
                init_dict['effects'] = [
                    Effect.from_json(**effect)
                    for effect in card_def['effects']
                ]

            MinionCard.__init__(self, **init_dict)
Exemple #29
0
 def __init__(self):
     super().__init__("Felguard",
                      3,
                      CHARACTER_CLASS.WARLOCK,
                      CARD_RARITY.RARE,
                      minion_type=MINION_TYPE.DEMON,
                      battlecry=Battlecry(DestroyManaCrystal(),
                                          PlayerSelector()))
Exemple #30
0
 def __init__(self):
     super().__init__("Scarlet Purifier",
                      3,
                      CHARACTER_CLASS.PALADIN,
                      CARD_RARITY.RARE,
                      battlecry=Battlecry(
                          Damage(2),
                          MinionSelector(MinionHasDeathrattle(),
                                         BothPlayer())))
Exemple #31
0
 def __init__(self):
     super().__init__("Dread Infernal",
                      6,
                      CHARACTER_CLASS.WARLOCK,
                      CARD_RARITY.COMMON,
                      minion_type=MINION_TYPE.DEMON,
                      battlecry=Battlecry(
                          Damage(1),
                          CharacterSelector(players=BothPlayer())))
Exemple #32
0
 def __init__(self):
     super().__init__("Metaltooth Leaper",
                      3,
                      CHARACTER_CLASS.HUNTER,
                      CARD_RARITY.RARE,
                      minion_type=MINION_TYPE.MECH,
                      battlecry=Battlecry(
                          Give(Buff(ChangeAttack(2))),
                          MinionSelector(IsType(MINION_TYPE.MECH))))
Exemple #33
0
 def __init__(self):
     super().__init__(
         "Void Terror",
         3,
         CHARACTER_CLASS.WARLOCK,
         CARD_RARITY.RARE,
         minion_type=MINION_TYPE.DEMON,
         battlecry=(Battlecry(
             Give([
                 Buff(
                     ChangeHealth(
                         Attribute("health", MinionSelector(Adjacent())))),
                 Buff(
                     ChangeAttack(
                         Attribute("attack", MinionSelector(Adjacent()))))
             ]),
             SelfSelector()), Battlecry(Kill(),
                                        MinionSelector(Adjacent()))))
        def __init_weapon__(self):
            init_dict = {
                'name': card_def['name'],
                'mana': card_def['mana'],
                'rarity': CARD_RARITY.from_str(card_def['rarity'])
            }
            if 'character_class' in card_def:
                init_dict['character_class'] = CHARACTER_CLASS.from_str(card_def['character_class'])

            if 'battlecry' in card_def:
                init_dict['battlecry'] = Battlecry.from_json(**card_def['battlecry'])

            if 'combo' in card_def:
                init_dict['combo'] = Battlecry.from_json(**card_def['combo'])

            if 'overload' in card_def:
                init_dict['overload'] = card_def['overload']

            WeaponCard.__init__(self, **init_dict)