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
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
def typecycling(subtype, cost): return search_cycling( match=isCard.with_condition(lambda c: c.subtypes == subtype), cost=cost, typestr=subtype)
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
def typecycling(subtype, cost): return search_cycling(match=isCard.with_condition(lambda c: c.subtypes == subtype), cost=cost, typestr=subtype)