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())))])
def create_minion(self, player): return Minion(3, 4, deathrattle=Deathrattle( Summon( HandSource(FriendlyPlayer(), [IsType(MINION_TYPE.DEMON)])), PlayerSelector()))
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()))) ])
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()
def __init__(self, condition=MinionIsNotTarget(), player=FriendlyPlayer()): super().__init__("after_added", condition, player)
def __init__(self, condition=None, player=FriendlyPlayer()): super().__init__("character_attack", condition, player)
def __init__(self, condition=None, player=FriendlyPlayer()): super().__init__("armor_increased", condition, player)
def __init__(self, condition=MinionIsNotTarget(), player=FriendlyPlayer()): super().__init__("minion_summoned", condition, player)
def __init__(self, condition=None, player=FriendlyPlayer()): super().__init__("secret_revealed", condition, player)
def __init__(self, condition=None, player=FriendlyPlayer()): super().__init__("minion_died", condition, player)
def __init__(self, condition=None, player=FriendlyPlayer()): super().__init__("spell_cast", condition, player)
def __init__( self, player=FriendlyPlayer(), ): super().__init__() self.player = player
def __init__(self, condition=None, player=FriendlyPlayer()): super().__init__("turn_started", condition, player)
def __init__(self, condition=CardIsNotTarget(), player=FriendlyPlayer()): super().__init__("card_used", condition, player)
def __init__(self, condition=None, player=FriendlyPlayer()): super().__init__("card_played", condition, player)
def __init__(self, player=FriendlyPlayer(), conditions=[]): super().__init__(conditions) self.player = player
def __init__(self, event1, event2, player=FriendlyPlayer()): super().__init__("either", None, player) self.event1 = event1 self.event2 = event2
def __init__(self, condition=None, player=FriendlyPlayer()): super().__init__("used_power", condition, player)