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__("Coghammer",
                      3,
                      CHARACTER_CLASS.PALADIN,
                      CARD_RARITY.EPIC,
                      battlecry=Battlecry(
                          Give([Buff(DivineShield()),
                                Buff(Taunt())]),
                          MinionSelector(picker=RandomPicker())))
Esempio n. 3
0
    def __init__(self,
                 attack,
                 health,
                 deathrattle=None,
                 taunt=False,
                 charge=False,
                 spell_damage=0,
                 divine_shield=False,
                 stealth=False,
                 windfury=False,
                 spell_targetable=True,
                 effects=None,
                 auras=None,
                 buffs=None,
                 enrage=None,
                 key=None):
        super().__init__(attack, health, enrage, effects, auras, buffs)
        self.game = None
        self.card = None
        self.index = -1

        if key is None:
            self.key = Minion.auto_key
            Minion.auto_key += 1
        else:
            self.key = key

        self.taunt = 0
        self.replaced_by = None
        self.can_be_targeted_by_spells = True
        if deathrattle:
            if isinstance(deathrattle, Deathrattle):
                self.deathrattle = [deathrattle]
            else:
                self.deathrattle = deathrattle
        else:
            self.deathrattle = []
        self.exhausted = True
        self.removed = False
        if charge:
            self.buffs.append(Buff(Charge()))
        if taunt:
            self.buffs.append(Buff(Taunt()))
        if stealth:
            self.buffs.append(Buff(Stealth()))
        if divine_shield:
            self.buffs.append(Buff(DivineShield()))
        if windfury:
            self.buffs.append(Buff(Windfury()))
        if not spell_targetable:
            self.buffs.append(Buff(NoSpellTarget()))
        if spell_damage:
            self.buffs.append(Buff(SpellDamage(spell_damage)))
Esempio n. 4
0
 def __init__(self):
     super().__init__("Houndmaster",
                      4,
                      CHARACTER_CLASS.HUNTER,
                      CARD_RARITY.FREE,
                      minion_type=MINION_TYPE.NONE,
                      battlecry=Battlecry(
                          Give([
                              Buff(ChangeHealth(2)),
                              Buff(ChangeAttack(2)),
                              Buff(Taunt())
                          ]),
                          MinionSelector(IsType(MINION_TYPE.BEAST),
                                         picker=UserPicker())))
Esempio n. 5
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. 6
0
 def use(self, player, game):
     super().use(player, game)
     self.target.add_buff(Buff(Taunt()))