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.facedowns
def onSpawn(self, target): if target.facedown: destroy(target)
def afterFight(self, enemy): destroy(enemy) self.controller.drawCard()
def destroyAll(self, fltr=lambda c: True): for card in [c for c in self if fltr(c)]: destroy(card)
def beforeFight(self, target): if hasattr(target, 'spell') and target.spell: destroy(target)
def afterEndTurn(self): if not hasattr(self.game, 'flooded') or not self.game.flooded: destroy(self)
def beforeEndTurn(self): destroy(self)