Exemplo n.º 1
0
 def heal(self, match, player):
     match.payInfluencePoints(3)
     match.effects.add(effects.HealPoints(1))
Exemplo n.º 2
0
 def ability1(self, match, player):
     match.effects.add(effects.HealPoints(2))
Exemplo n.º 3
0
 def basicEffect(self, match, player):
     effect = effects.HealPoints(1)
     index = dialogs.chooseIndex([effect, translate('cards', "Draw a card")])
     if index == 0:
         match.effects.add(effects.HealPoints(1))
     else: player.drawCards(1)
Exemplo n.º 4
0
 def strongEffect(self, match, player):
     effect = effects.HealPoints(2)
     index = dialogs.chooseIndex([effect, translate('cards', "Draw two cards")])
     if index == 0:
         match.effects.add(effects.HealPoints(2))
     else: player.drawCards(2)
Exemplo n.º 5
0
 def payHealPoints(self, cost):
     if self.effects.healPoints < cost:
         raise InvalidAction("Not enough heal points")
     if cost > 0:
         self.effects.remove(effects.HealPoints(cost))