Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(8)  |  Derive(0)  |  Import(8)

src/i/n/incantus-HEAD/src/engine/Ability/RavnicaAbility.py   incantus(Download)
from Limit import sorcery_limit
from ActivatedAbility import ActivatedAbility
from Target import NoTarget
from Cost import DiscardCost
from engine.Match import isCard
            card.move_to("hand")
        yield
    return ActivatedAbility(effects, limit=sorcery_limit, zone="hand", txt="Transmute %s"%str(cost), keyword="transmute")
 

src/i/n/incantus-HEAD/src/engine/Ability/AlaraAbility.py   incantus(Download)
from random import shuffle
from engine.symbols import Land
from engine.GameEvent import DeclareAttackersEvent, InvalidTargetEvent, EndTurnStepEvent, SpellPlayedEvent
from engine.Match import isCreature
from ActivatedAbility import ActivatedAbility
            msg="%s - exile from game"%source.name))
        yield
    return ActivatedAbility(effects, limit=sorcery_limit, zone="graveyard", txt="Unearth %s"%str(cost), keyword="unearth")
 
def cascade():

src/i/n/incantus-HEAD/src/engine/Ability/CyclingAbility.py   incantus(Download)
from Cost import ManaCost, Cost
from ActivatedAbility import ActivatedAbility
from engine.Match import isCard, isBasicLandCard
from engine.GameEvent import DiscardCardEvent, CardCycledEvent, TimestepEvent
from engine.symbols import *
        controller.draw()
        yield
    return ActivatedAbility(effects, zone="hand", txt="Cycling %s"%str(cost), keyword="cycling")
 
def search_cycling(match, cost, typestr):
            card.move_to("hand")
        yield
    return ActivatedAbility(effects, zone="hand", txt="%scycling %s"%(typestr, str(cost)), keyword="cycling")
 
basic_landcycling = lambda cost: search_cycling(isBasicLandCard, cost, "Basic land")

src/i/n/incantus-HEAD/src/engine/Ability/MorningtideAbility.py   incantus(Download)
from engine.Player import keyword_action
from engine.GameEvent import UpkeepStepEvent, DealsDamageToEvent
from engine.Match import isCreature, isPlayer
from ActivatedAbility import ActivatedAbility
from TriggeredAbility import TriggeredAbility
        target.add_counters(PowerToughnessCounter(1, 1), number)
        yield
    return ActivatedAbility(effects, zone="hand", txt="Reinforce %d"%number, keyword="Reinforce")
 
class ProwlVariable(MemoryVariable):

src/i/n/incantus-HEAD/src/engine/Ability/RiseOfTheEldraziAbility.py   incantus(Download)
from engine.GameEvent import AttackerDeclaredEvent
from ActivatedAbility import ActivatedAbility
from TriggeredAbility import TriggeredAbility
from StaticAbility import ConditionalStaticAbility
from Trigger import Trigger, sender_match
        source.add_counters("level", 1)
        yield
    return ActivatedAbility(effects, txt='Level up %s'%cost, keyword="level up", limit=sorcery_limit)
 
def level_between(start, end, txt=''):

src/i/n/incantus-HEAD/src/engine/Ability/PermanentAbility.py   incantus(Download)
from engine.Match import isCard, isCreature, isLand, isPermanent
from engine.GameEvent import UntapStepEvent, UpkeepStepEvent
from engine.CardRoles import permanent_method
from ActivatedAbility import ActivatedAbility
from StaticAbility import CardStaticAbility
        source.attach(target)
        yield
    return ActivatedAbility(effects, limit=limit+sorcery_limit, txt='%s %s'%(keyword, cost), keyword=keyword)
 
equip = lambda cost, limit=no_limit: attach_artifact(cost, "Equip", limit)

src/i/n/incantus-HEAD/src/engine/Ability/Decorators.py   incantus(Download)
from ActivatedAbility import ActivatedAbility, ManaAbility
from TriggeredAbility import TriggeredAbility
from StaticAbility import *
from CastingAbility import CastInstantSpell, CastSorcerySpell
from Target import NoTarget, Target
    def make_ability(ability):
        effects = ability()
        return ActivatedAbility(effects, limit, zone, txt)
    return make_ability
 

src/i/n/incantus-HEAD/src/engine/Ability/TimeSpiralAbility.py   incantus(Download)
from engine.GameEvent import UpkeepStepEvent, CounterRemovedEvent
from engine.CardRoles import NonBattlefieldRole
from ActivatedAbility import ActivatedAbility
 
__all__ = ['suspended', 'suspend', 'split_second']