コード例 #1
0
    def use_with_arg(cls, state, card_index, *args):
        if len(args) == 0:
            hand_card = state.my_hand_cards[card_index]
            warn_print(f"Receive 0 args in using SpellPointMine card {hand_card.name}")
            return

        mine_index = args[0]
        click.choose_card(card_index, state.my_hand_card_num)
        click.choose_my_minion(mine_index, state.my_minion_num)
        click.cancel_click()
        time.sleep(cls.wait_time)
コード例 #2
0
    def use_with_arg(cls, state, card_index, *args):
        gap_index = args[0]
        oppo_index = args[1]

        click.choose_card(card_index, state.my_hand_card_num)
        click.put_minion(gap_index, state.my_minion_num)
        if oppo_index >= 0:
            click.choose_opponent_minion(oppo_index, state.oppo_minion_num)
        else:
            click.choose_oppo_hero()
        click.cancel_click()
        time.sleep(BASIC_MINION_PUT_INTERVAL)
コード例 #3
0
    def use_with_arg(cls, state, card_index, *args):
        gap_index = args[0]
        my_index = args[1]

        click.choose_card(card_index, state.my_hand_card_num)
        click.put_minion(gap_index, state.my_minion_num)
        if my_index >= 0:
            # 这时这个随从已经在场上了, 其他随从已经移位了
            click.choose_my_minion(my_index, state.my_minion_num + 1)
        else:
            click.choose_my_hero()
        click.cancel_click()
        time.sleep(BASIC_MINION_PUT_INTERVAL)
コード例 #4
0
    def use_with_arg(cls, state, card_index, *args):
        if len(args) == 0:
            hand_card = state.my_hand_cards[card_index]
            warn_print(f"Receive 0 args in using SpellPointOppo card {hand_card.name}")
            return

        oppo_index = args[0]
        click.choose_card(card_index, state.my_hand_card_num)
        if oppo_index >= 0:
            click.choose_opponent_minion(oppo_index, state.oppo_minion_num)
        else:
            click.choose_oppo_hero()
        click.cancel_click()
        time.sleep(cls.wait_time)
コード例 #5
0
 def use_with_arg(cls, state, card_index, *args):
     gap_index = args[0]
     click.choose_card(card_index, state.my_hand_card_num)
     click.put_minion(gap_index, state.my_minion_num)
     click.cancel_click()
     time.sleep(BASIC_MINION_PUT_INTERVAL)