"""Sacred Sword of Seven Stars"""
from script.card import Card
class c45725480(Card):
    #TODO untested
    def canActivate(self,game):
        return not game.hasActivated(self) and len(list(filter(self.seven, game.hand))) > 0 and len(game.deck) >= 2

    def activate(self,game):
        target = game.chooseTarget(list(filter(self.seven, game.hand)),self.cid)
        game.banish(target)

    def eff(self,game):
        game.draw()
        game.draw()

    def seven(self,card):
        return card.level == 7 #level 7 monster
