Ejemplo n.º 1
0
 def create_minion(self, player):
     return Minion(5, 8, effects=[Effect(SpellCast(Not(HasCardName("Gallywix's Coin")), EnemyPlayer()),
                                         ActionTag(AddCard(CardQuery(source=CARD_SOURCE.LAST_CARD)),
                                         PlayerSelector(FriendlyPlayer()))),
                                  Effect(SpellCast(Not(HasCardName("Gallywix's Coin")), EnemyPlayer()),
                                         ActionTag(AddCard(GallywixsCoin()),
                                         PlayerSelector(EnemyPlayer())))])
Ejemplo n.º 2
0
 def create_minion(self, player):
     return Minion(3,
                   4,
                   deathrattle=Deathrattle(
                       Summon(
                           HandSource(FriendlyPlayer(),
                                      [IsType(MINION_TYPE.DEMON)])),
                       PlayerSelector()))
Ejemplo n.º 3
0
 def create_minion(self, player):
     return Minion(5,
                   8,
                   effects=[
                       Effect(
                           SpellCast(Not(HasCardName("Gallywix's Coin")),
                                     EnemyPlayer()),
                           ActionTag(AddCard(LastCard()),
                                     PlayerSelector(FriendlyPlayer()))),
                       Effect(
                           SpellCast(Not(HasCardName("Gallywix's Coin")),
                                     EnemyPlayer()),
                           ActionTag(AddCard(GallywixsCoin()),
                                     PlayerSelector(EnemyPlayer())))
                   ])
Ejemplo n.º 4
0
 def from_json(name):
     from hearthbreaker.tags.selector import FriendlyPlayer, EnemyPlayer, BothPlayer, PlayerOne, \
         PlayerTwo, CurrentPlayer, OtherPlayer
     if name == "friendly":
         return FriendlyPlayer()
     elif name == "enemy":
         return EnemyPlayer()
     elif name == "both":
         return BothPlayer()
     elif name == "player_one":
         return PlayerOne()
     elif name == "player_two":
         return PlayerTwo()
     elif name == "current_player":
         return CurrentPlayer()
     elif name == "other_player":
         return OtherPlayer()
Ejemplo n.º 5
0
 def __init__(self, condition=MinionIsNotTarget(), player=FriendlyPlayer()):
     super().__init__("after_added", condition, player)
Ejemplo n.º 6
0
 def __init__(self, condition=None, player=FriendlyPlayer()):
     super().__init__("character_attack", condition, player)
Ejemplo n.º 7
0
 def __init__(self, condition=None, player=FriendlyPlayer()):
     super().__init__("armor_increased", condition, player)
Ejemplo n.º 8
0
 def __init__(self, condition=MinionIsNotTarget(), player=FriendlyPlayer()):
     super().__init__("minion_summoned", condition, player)
Ejemplo n.º 9
0
 def __init__(self, condition=None, player=FriendlyPlayer()):
     super().__init__("secret_revealed", condition, player)
Ejemplo n.º 10
0
 def __init__(self, condition=None, player=FriendlyPlayer()):
     super().__init__("minion_died", condition, player)
Ejemplo n.º 11
0
 def __init__(self, condition=None, player=FriendlyPlayer()):
     super().__init__("spell_cast", condition, player)
Ejemplo n.º 12
0
 def __init__(
         self,
         player=FriendlyPlayer(),
 ):
     super().__init__()
     self.player = player
Ejemplo n.º 13
0
 def __init__(self, condition=None, player=FriendlyPlayer()):
     super().__init__("turn_started", condition, player)
Ejemplo n.º 14
0
 def __init__(self, condition=CardIsNotTarget(), player=FriendlyPlayer()):
     super().__init__("card_used", condition, player)
Ejemplo n.º 15
0
 def __init__(self, condition=None, player=FriendlyPlayer()):
     super().__init__("card_played", condition, player)
Ejemplo n.º 16
0
 def __init__(self, player=FriendlyPlayer(), conditions=[]):
     super().__init__(conditions)
     self.player = player
Ejemplo n.º 17
0
 def __init__(self, event1, event2, player=FriendlyPlayer()):
     super().__init__("either", None, player)
     self.event1 = event1
     self.event2 = event2
Ejemplo n.º 18
0
 def __init__(self, condition=None, player=FriendlyPlayer()):
     super().__init__("used_power", condition, player)