def METHOD_NAME(evt: Event, var: GameState, player: User, main_role: str, all_roles: set[str], winner: str):
    if main_role == "turncoat" and player in TURNCOATS and TURNCOATS[player][0] != "none":
        team = "villagers" if TURNCOATS[player][0] == "villager" else "wolves"
        evt.data["team_win"] = (winner == team)