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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/i/n/incantus-HEAD/src/engine/Ability/LandAbility.py   incantus(Download)
from engine.symbols import Forest, Island, Plains, Mountain, Swamp
from ActivatedAbility import ManaAbility
from Target import NoTarget
from Cost import TapCost
 
        controller.add_mana(color)
        yield
    return ManaAbility(effects, txt="{T}: Add {%s} to your mana pool"%color)
 

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 ManaAbility(effects, limit, zone, txt)
    return make_ability