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

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/i/n/incantus-HEAD/src/engine/CardRoles.py   incantus(Download)
from Ability.Cost import Cost, MultipleCosts
from Ability.Limit import sorcery_limit, no_limit
from Ability.CiPAbility import CiP, enter_tapped, attach_on_enter
from Ability.Cost import ManaCost
 
    def activate(self):
        if self.subtypes == Aura: self.abilities.add(attach_on_enter())
        super(SpellRole, self).activate()
    def get_casting_cost(self):
        # Handle alternative costs - default is casting cost
 
        if self.subtypes == Aura:
            self.abilities.add(CastAuraSpell(), attach_on_enter())
        else: self.abilities.add(CastPermanentSpell())
        self._play_spell = self.abilities.cast()