Esempio n. 1
0
 def __init__(self):
     super().__init__("Cenarius", 9, CHARACTER_CLASS.DRUID, CARD_RARITY.LEGENDARY, choices=[
         Choice(IncreaseStats(), Give([Buff(ChangeAttack(2)),
                                       Buff(ChangeHealth(2)),
                                       Buff(Taunt())]), MinionSelector()),
         Choice(SummonTreants(), Summon(TauntTreant(), 2), PlayerSelector())
     ])
Esempio n. 2
0
 def __init__(self):
     super().__init__("Cenarius", 9, CHARACTER_CLASS.DRUID, CARD_RARITY.LEGENDARY, choices=[
         Choice(IncreaseStats(), Give([Add(CHARACTER_STATUS.ATTACK, 2),
                                       Add(CHARACTER_STATUS.HEALTH, 2),
                                       SetTrue(CHARACTER_STATUS.TAUNT)]), MinionSelector()),
         Choice(SummonTreants(), Summon(TauntTreant(), 2), PlayerSelector())
     ])
Esempio n. 3
0
 def __init__(self):
     super().__init__("Druid of the Claw",
                      5,
                      CHARACTER_CLASS.DRUID,
                      CARD_RARITY.COMMON,
                      choices=[
                          Choice(CatForm(), Transform(CatDruid()),
                                 SelfSelector()),
                          Choice(BearForm(), Transform(BearDruid()),
                                 SelfSelector())
                      ])
Esempio n. 4
0
 def __init__(self):
     super().__init__("Grove Tender",
                      3,
                      CHARACTER_CLASS.DRUID,
                      CARD_RARITY.RARE,
                      choices=[
                          Choice(GiftOfMana(), GiveManaCrystal(),
                                 PlayerSelector(players=BothPlayer())),
                          Choice(GiftOfCards(), Draw(),
                                 PlayerSelector(players=BothPlayer()))
                      ])
Esempio n. 5
0
    def __init__(self):

        super().__init__("Ancient of Lore",
                         7,
                         CHARACTER_CLASS.DRUID,
                         CARD_RARITY.EPIC,
                         choices=[
                             Choice(AncientSecrets(), Heal(5), HeroSelector()),
                             Choice(AncientTeachings(), Draw(3),
                                    PlayerSelector())
                         ])
Esempio n. 6
0
 def __init__(self):
     super().__init__("Druid of the Flame",
                      3,
                      CHARACTER_CLASS.DRUID,
                      CARD_RARITY.COMMON,
                      choices=[
                          Choice(FlameCatForm(), Transform(FlameCat()),
                                 SelfSelector()),
                          Choice(FlameBirdForm(), Transform(FlameBird()),
                                 SelfSelector())
                      ])
Esempio n. 7
0
 def __init__(self):
     super().__init__("Anodized Robo Cub",
                      2,
                      CHARACTER_CLASS.DRUID,
                      CARD_RARITY.COMMON,
                      minion_type=MINION_TYPE.MECH,
                      choices=[
                          Choice(AttackMode(),
                                 Give([Buff(ChangeAttack(1))]),
                                 SelfSelector()),
                          Choice(TankMode(), Give([Buff(ChangeHealth(1))]),
                                 SelfSelector())
                      ])
Esempio n. 8
0
    def __init__(self):

        super().__init__("Ancient of War",
                         7,
                         CHARACTER_CLASS.DRUID,
                         CARD_RARITY.EPIC,
                         choices=[
                             Choice(
                                 Health(),
                                 Give([Buff(ChangeHealth(5)),
                                       Buff(Taunt())]), SelfSelector()),
                             Choice(Attack(), Give([Buff(ChangeAttack(5))]),
                                    SelfSelector()),
                         ])
Esempio n. 9
0
 def __init__(self):
     super().__init__("Keeper of the Grove",
                      4,
                      CHARACTER_CLASS.DRUID,
                      CARD_RARITY.RARE,
                      choices=[
                          Choice(
                              Moonfire(), Damage(2),
                              CharacterSelector(players=BothPlayer(),
                                                picker=UserPicker())),
                          Choice(
                              Dispel(), Silence(),
                              MinionSelector(players=BothPlayer(),
                                             picker=UserPicker()))
                      ])
        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)
Esempio n. 11
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)
Esempio n. 12
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'] = 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)
Esempio n. 13
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)
Esempio n. 14
0
 def __init__(self):
     super().__init__("Anodized Robo Cub", 2, CHARACTER_CLASS.DRUID, CARD_RARITY.COMMON,
                      minion_type=MINION_TYPE.MECH,
                      choices=[Choice(AttackMode(), Give([Add(CHARACTER_STATUS.ATTACK, 1)]), SelfSelector()),
                               Choice(TankMode(), Give([Add(CHARACTER_STATUS.HEALTH, 1)]), SelfSelector())])
Esempio n. 15
0
    def __init__(self):

        super().__init__("Ancient of War", 7, CHARACTER_CLASS.DRUID, CARD_RARITY.EPIC, choices=[
            Choice(Health(), Give([Add(CHARACTER_STATUS.HEALTH, 5), SetTrue(CHARACTER_STATUS.TAUNT)]), SelfSelector()),
            Choice(Attack(), Give([Add(CHARACTER_STATUS.ATTACK, 5)]), SelfSelector()),
        ])