Beispiel #1
0
 def effects(controller, source):
     yield cost + DiscardCost()
     target = yield NoTarget()
     CMC = source.converted_mana_cost
     for card in controller.choose_from_zone(number=1, cardtype=isCard.with_condition(lambda c: c.converted_mana_cost == CMC), zone="library", action="card with converted mana cost %s to put into your hand"%CMC, required=False):
         controller.reveal_cards(card)
         card.move_to("hand")
     yield
Beispiel #2
0
 def effects(controller, source):
     target = yield Target(isCard.with_condition(
         lambda c: c.subtypes == Spirit and c.converted_mana_cost <= n),
                           zone="graveyard",
                           player="you")
     # Code for effect
     if controller.you_may("return target to your hand"):
         target.move_to("hand")
     yield
Beispiel #3
0
def typecycling(subtype, cost):
    return search_cycling(
        match=isCard.with_condition(lambda c: c.subtypes == subtype),
        cost=cost,
        typestr=subtype)
Beispiel #4
0
 def effects(controller, source):
     target = yield Target(isCard.with_condition(lambda c: c.subtypes == Spirit and c.converted_mana_cost <= n), zone = "graveyard", player = "you")
     # Code for effect
     if controller.you_may("return target to your hand"):
         target.move_to("hand")
     yield
Beispiel #5
0
def typecycling(subtype, cost):
    return search_cycling(match=isCard.with_condition(lambda c: c.subtypes == subtype), cost=cost, typestr=subtype)