コード例 #1
0
 def create_minion(self, player):
     return Minion(9,
                   9,
                   effects=[
                       Effect(TurnEnded(MinionCountIs(1), BothPlayer()),
                              ActionTag(Kill(), SelfSelector()))
                   ])
コード例 #2
0
ファイル: warlock.py プロジェクト: smallsweet/hearthbreaker
    def use(self, player, game):
        super().use(player, game)

        self.target.add_effect(
            Effect(TurnEnded(), ActionTag(Kill(), SelfSelector())))
        self.target.change_attack(4)
        self.target.increase_health(4)
コード例 #3
0
ファイル: rogue.py プロジェクト: vkarthi46/hearthbreaker
 def create_minion(self, player):
     return Minion(1,
                   1,
                   stealth=True,
                   effects=[
                       Effect(DidDamage(),
                              ActionTag(Kill(), TargetSelector(IsMinion())))
                   ])
コード例 #4
0
 def create_minion(self, player):
     return Minion(2,
                   2,
                   charge=True,
                   effects=[
                       Effect(TurnEnded(),
                              ActionTag(Kill(), SelfSelector()))
                   ])
コード例 #5
0
 def create_minion(self, player):
     return Minion(4,
                   2,
                   effects=[
                       Effect(
                           CharacterDamaged(MinionIsNotTarget(),
                                            BothPlayer()),
                           [ActionTag(Kill(), TargetSelector())])
                   ])
コード例 #6
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()))))
コード例 #7
0
ファイル: warlock.py プロジェクト: vkarthi46/hearthbreaker
 def __init__(self):
     super().__init__(
         "Void Terror",
         3,
         CHARACTER_CLASS.WARLOCK,
         CARD_RARITY.RARE,
         minion_type=MINION_TYPE.DEMON,
         battlecry=(Battlecry(
             Give([
                 Add(
                     CHARACTER_STATUS.ATTACK(
                         Attribute("attack", MinionSelector(Adjacent())))),
                 Add(
                     CHARACTER_STATUS.HEALTH(
                         Attribute("health", MinionSelector(Adjacent()))))
             ]),
             SelfSelector()), Battlecry(Kill(),
                                        MinionSelector(Adjacent()))))
コード例 #8
0
ファイル: warlock.py プロジェクト: DariuszPiotr/HeathStoneAI
 def use(self, player, game):
     super().use(player, game)
     self.target.add_effect(Effect(TurnStarted(player=EnemyPlayer()), ActionTag(Kill(), SelfSelector())))