mtg/abilities.py

13 lines
375 B
Python

import logging
import mtg
class TapMana(mtg.Ability):
def __init__(self, card, mana):
mtg.Ability.__init__(self, card, name='Tap Land', tap=True)
self.mana = mana
def run(self):
self.card.owner.mana += self.mana
logging.debug('%s: Added %s to mana pool of %s', self, self.mana, self.card.owner)
class Lifelink(mtg.Ability):
pass