示例#1
0
 def trigger(self, ttype, data, player, active, immediate):
     if globe.DEBUG:
         print("test", self.name, flush=True)
     if trigger.test(not immediate,\
         trigger.PLAY, \
         self.trigger, \
         player,ttype) \
       and data[0].ctype_eq(cardtype.VILLAIN):
         if globe.DEBUG:
             print("active", self.name, flush=True)
         self.action = actions.special_action("The Joker",
                                              self.special_action_click)
         player.played.special_options.append(self.action)
         player.triggers.remove(self.trigger)
示例#2
0
 def play_action(self, player):
     self.discarded_cards = []
     self.save_persona = persona_frame.dispatch(player)
     for p in globe.boss.players:
         if p != player:
             card_to_discard = p.reveal_card(public=False)
             if card_to_discard != None:
                 self.discarded_cards.append(card_to_discard)
                 p.discard_a_card(card_to_discard)
     if len(self.discarded_cards) > 0:
         self.action = actions.special_action("Eclipso",
                                              self.special_action_click)
         player.played.special_options.append(self.action)
     return 0
示例#3
0
 def trigger(self, ttype, data, player, active, immediate):
     if globe.DEBUG:
         print("test", self.name, flush=True)
     if trigger.test(not immediate,\
         trigger.PLAY, \
         self.trigger, \
         player,ttype,active) \
       and player.played.played_this_turn.index(data[0]) == 0 \
       and data[0].cost >= 1:
         if globe.DEBUG:
             print("active", self.name, flush=True)
         self.action = actions.special_action("Bane",
                                              self.special_action_click)
         player.played.special_options.append(self.action)
         player.triggers.remove(self.trigger)
    def ready(self):
        if self.active:
            if len(self.player.under_superhero.contents) >= 4:
                self.player.played.plus_power(2)
                if len(self.player.under_superhero.contents) > 4:
                    for i in range(4):
                        instruction_text = f"Choose a card to destroy from under your super hero ({i+1}/4)"
                        result = effects.choose_one_of(
                            instruction_text, self.player,
                            self.player.under_superhero.contents)
                        result.destroy(self.player)
                else:
                    for c in self.player.under_superhero.contents.copy():
                        c.destroy(self.player)

            self.action = actions.special_action("Roy Harper",
                                                 self.special_action_click)
            self.player.played.special_options.append(self.action)
 def ready(self):
     self.player.triggers.append(self.trigger)
     if self.active:
         self.action = actions.special_action("Sara Lance",
                                              self.special_action_click)
         self.player.played.special_options.append(self.action)
 def ready(self):
     if self.active:
         self.action = actions.special_action("John Diggle",
                                              self.special_action_click)
         self.player.played.special_options.append(self.action)
 def ready(self):
     if self.active:
         self.action = actions.special_action("Batgirl",
                                              self.special_action_click)
         self.player.played.special_options.append(self.action)
 def ready(self):
     if self.active:
         self.action = actions.special_action("Red Tornado",
                                              self.special_action_click)
         self.player.played.special_options.append(self.action)
	def ready(self):
		if self.active:
			self.action = actions.special_action("Mister Terrific",self.special_action_click)
			self.player.played.special_options.append(self.action)