Example #1
0
def test_faerie_dragon():
    game, p0, p1 = newGame()

    fd = fae.faerieDragon(owner=p0, game=game, zone=p0.faceups)
    destroy(fd)

    assert fd.zone is p0.hand
Example #2
0
 def beforeEndTurn(self):
     destroy(self)
Example #3
0
 def onSpawn(self, target):
     destroy(target)
Example #4
0
 def onSpawn(self, target):
     if target.facedown:
         destroy(target)
Example #5
0
 def afterFight(self, enemy):
     destroy(enemy)
     self.controller.drawCard()
Example #6
0
 def destroyAll(self, fltr=lambda c: True):
     for card in [c for c in self if fltr(c)]:
         destroy(card)
Example #7
0
 def onSpawn(self, target):
     destroy(target)
     self.controller.drawCard()
Example #8
0
 def onSpawn(self, target):
     if (target.faceup and not target.spell):
         destroy(target)