from godfather.game import Player
from godfather.factions.base import Faction


class ExecutionerNeutral(Faction):
    name = 'Executioner'
    id = 'neutral.executioner'
    win_con = 'Get your target lynched at any cost.'

    def has_won_independent(self, player: Player):
        if not player.target.alive and player.target.death_reason.startswith('lynched'):
            return True
        return False
